title: How to parse log using telegraf for dynamic logname that changes daily?
body: <p>Everyone, please need help.
  I am using telegraf now as a log feeder for my InfluxDB database, the concept is my telegraf will read a log then send the result to InfluxDB.</p>
  
  <pre><code>[[inputs.logparser]]
  files = ["/here/is/the/directory/logname.log"]
  from_beginning = false
  </code></pre>
  
  <p>It works as expected when the log file name is logname.log. But, today i need to changes the logname system to logname.20170320.log where 20170320 is the date of log. Do you mind, how is the right configuration for:</p>
  
  <pre><code>files = ["/here/is/the/directory/logname.log"]
  </code></pre>
  
  <p>So it can read the daily log that the name dynamicly changed everyday like:</p>
  
  <pre><code>files = ["/here/is/the/directory/logname.20170320.log"]
  files = ["/here/is/the/directory/logname.20170321.log"]
  </code></pre>
  
  <p>Thanks for your help.</p>