rsyslog log file with wildcardsCan we change the log message format in sysklogd (similar to creating templates in rsyslog)rsyslog - Property-based filtering not workingHow to collect spring batch remote partitioned application logs from all servers to one server using Rsyslog?rsyslog stale file handler with catalina.outUnsure how to approach rsyslog logging formatRsyslog v8 imfile directory wildcardWhen rsyslog (v8.39.0) mmnormalize is not recognized. How can this be fixed?Compare Array of IPs with rsyslogrsyslog writes logs from firewall to both /var/log/message and to specific filerSyslog - file categorising based on port

Wordplay addition paradox

What would be the safest way to drop thousands of small, hard objects from a typical, high wing, GA airplane?

Is this fuse time-current curve wrong?

Does inertia keep a rotating object rotating forever, or something else?

Wordplay subtraction paradox

Is there a typesafe way to get a Database.QueryLocator?

How can I help our ranger feel special about her beast companion?

Generating a PIN from cryptographic bytes

Alphanumeric Line and Curve Counting

What happens if a company buys back all of its shares?

Is it legal for a supermarket to refuse to sell an adult beer if an adult with them doesn’t have their ID?

What are "full piece" and "half piece" in chess?

Credit card details stolen every 1-2 years. What am I doing wrong?

How can a drink contain 1.8 kcal energy while 0 g fat/carbs/protein?

Is it rude to refer to janitors as 'floor people'?

Was Apollo 13 radio blackout on reentry longer than expected?

Is passive Investigation essentially truesight against illusions?

Do dragons smell of lilacs?

Create Array from list of indices/values

how slow a car engine can run

What are the basics of commands in Minecraft Java Edition?

Why is Google approaching my VPS machine?

Optimising the Selection of MaxValue in Association

Did 007 exist before James Bond?



rsyslog log file with wildcards


Can we change the log message format in sysklogd (similar to creating templates in rsyslog)rsyslog - Property-based filtering not workingHow to collect spring batch remote partitioned application logs from all servers to one server using Rsyslog?rsyslog stale file handler with catalina.outUnsure how to approach rsyslog logging formatRsyslog v8 imfile directory wildcardWhen rsyslog (v8.39.0) mmnormalize is not recognized. How can this be fixed?Compare Array of IPs with rsyslogrsyslog writes logs from firewall to both /var/log/message and to specific filerSyslog - file categorising based on port






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















configure rsyslog to monitor direcory files when log file name changed



I have a service that creates a new log file each hour with the hour in the file name i.e: ecs-agent.log.2019-03-26-08
Each time the file changed rsyslog doesnt recognize the change.
the following settings in the conf file will not work:



$InputFileName /var/log/ecs/ecs-agent.log.*
$InputFileStateFile stat-ecs-agent.log.*


Since there is only one log file in the folder active each time - anyway to configure rsyslog to monitor the folder?










share|improve this question




























    1















    configure rsyslog to monitor direcory files when log file name changed



    I have a service that creates a new log file each hour with the hour in the file name i.e: ecs-agent.log.2019-03-26-08
    Each time the file changed rsyslog doesnt recognize the change.
    the following settings in the conf file will not work:



    $InputFileName /var/log/ecs/ecs-agent.log.*
    $InputFileStateFile stat-ecs-agent.log.*


    Since there is only one log file in the folder active each time - anyway to configure rsyslog to monitor the folder?










    share|improve this question
























      1












      1








      1


      0






      configure rsyslog to monitor direcory files when log file name changed



      I have a service that creates a new log file each hour with the hour in the file name i.e: ecs-agent.log.2019-03-26-08
      Each time the file changed rsyslog doesnt recognize the change.
      the following settings in the conf file will not work:



      $InputFileName /var/log/ecs/ecs-agent.log.*
      $InputFileStateFile stat-ecs-agent.log.*


      Since there is only one log file in the folder active each time - anyway to configure rsyslog to monitor the folder?










      share|improve this question














      configure rsyslog to monitor direcory files when log file name changed



      I have a service that creates a new log file each hour with the hour in the file name i.e: ecs-agent.log.2019-03-26-08
      Each time the file changed rsyslog doesnt recognize the change.
      the following settings in the conf file will not work:



      $InputFileName /var/log/ecs/ecs-agent.log.*
      $InputFileStateFile stat-ecs-agent.log.*


      Since there is only one log file in the folder active each time - anyway to configure rsyslog to monitor the folder?







      amazon-ecs rsyslog






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 9:07









      A1001A1001

      392 bronze badges




      392 bronze badges






















          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55353323%2frsyslog-log-file-with-wildcards%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55353323%2frsyslog-log-file-with-wildcards%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript