<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to configure splunk forwarder to monitor a file whose name changes on daily basis in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-splunk-forwarder-to-monitor-a-file-whose-name/m-p/466657#M80400</link>
    <description>&lt;P&gt;Your inputs.conf looks good.  The forwarder will notice the new file when it is created and will monitor it.  Moving the old file to a new location should not affect the forwarder.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2019 14:31:46 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-12-17T14:31:46Z</dc:date>
    <item>
      <title>how to configure splunk forwarder to monitor a file whose name changes on daily basis</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-splunk-forwarder-to-monitor-a-file-whose-name/m-p/466656#M80399</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am trying to monitor a logfile which is generated in a path every day at 23:55 from a python script. My problem here is the file name of the log file changes everyday as the script is appending date to the file name.&lt;/P&gt;

&lt;P&gt;Eg: Today the file name is "eswitch_16122019_235501_7000.log"&lt;BR /&gt;
Tomorrow the file name will be "eswitch_17122019_235501_7000.log"&lt;/P&gt;

&lt;P&gt;My inputs.conf is as below&lt;BR /&gt;
[monitor:///opt/home/splunk_eswitch/eswitch_*.log]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
index = test2&lt;BR /&gt;
sourcetype = eswitch&lt;/P&gt;

&lt;P&gt;Now when I run splunk list monitor I am seeing a below &lt;BR /&gt;
/opt/home/splunk_eswitch/eswitch_*.log&lt;BR /&gt;
                /opt/delphi/splunk_eswitch/eswitch_16122019_235501_7000.log&lt;/P&gt;

&lt;P&gt;My question is tomorrow does the forwarder sends the newly created file log to indexer with any issue as the yesterday's file will not be present in the same path.&lt;BR /&gt;
Is there any better regex to have in inputs.conf then above one&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:23:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-splunk-forwarder-to-monitor-a-file-whose-name/m-p/466656#M80399</guid>
      <dc:creator>poddraj</dc:creator>
      <dc:date>2020-09-30T03:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure splunk forwarder to monitor a file whose name changes on daily basis</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-splunk-forwarder-to-monitor-a-file-whose-name/m-p/466657#M80400</link>
      <description>&lt;P&gt;Your inputs.conf looks good.  The forwarder will notice the new file when it is created and will monitor it.  Moving the old file to a new location should not affect the forwarder.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 14:31:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-splunk-forwarder-to-monitor-a-file-whose-name/m-p/466657#M80400</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-12-17T14:31:46Z</dc:date>
    </item>
  </channel>
</rss>

