<?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 inputs.conf configuration for files where content only sometimes changes in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-configuration-for-files-where-content-only-sometimes/m-p/551827#M91578</link>
    <description>&lt;P&gt;Hello Community!&lt;/P&gt;&lt;P&gt;I have a file which will be renewed once a day.&lt;/P&gt;&lt;P&gt;Often the output is the same as the output before.&lt;/P&gt;&lt;P&gt;So it happens that Splunk doesn't index the file and the content isn't available in a subsearch with a timefilter last24h.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So there are some config attributes like crcSalt to tellSplunk, it should read the file if the crc hash has changed, but in this time I think its worthless because the crcSalt is the same of the whole file.&lt;/P&gt;&lt;P&gt;So what can make sense is to, tell Splunk to use only the mtime of the file, but I haven't seen such a setting.&lt;/P&gt;&lt;P&gt;Do you have a hint, how I can read the file with same content, same crc and same size but an other timestamp.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 May 2021 10:00:05 GMT</pubDate>
    <dc:creator>RobertRi</dc:creator>
    <dc:date>2021-05-17T10:00:05Z</dc:date>
    <item>
      <title>inputs.conf configuration for files where content only sometimes changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-configuration-for-files-where-content-only-sometimes/m-p/551827#M91578</link>
      <description>&lt;P&gt;Hello Community!&lt;/P&gt;&lt;P&gt;I have a file which will be renewed once a day.&lt;/P&gt;&lt;P&gt;Often the output is the same as the output before.&lt;/P&gt;&lt;P&gt;So it happens that Splunk doesn't index the file and the content isn't available in a subsearch with a timefilter last24h.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So there are some config attributes like crcSalt to tellSplunk, it should read the file if the crc hash has changed, but in this time I think its worthless because the crcSalt is the same of the whole file.&lt;/P&gt;&lt;P&gt;So what can make sense is to, tell Splunk to use only the mtime of the file, but I haven't seen such a setting.&lt;/P&gt;&lt;P&gt;Do you have a hint, how I can read the file with same content, same crc and same size but an other timestamp.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 10:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-configuration-for-files-where-content-only-sometimes/m-p/551827#M91578</guid>
      <dc:creator>RobertRi</dc:creator>
      <dc:date>2021-05-17T10:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf configuration for files where content only sometimes changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-configuration-for-files-where-content-only-sometimes/m-p/551829#M91579</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/859"&gt;@RobertRi&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the filename or path are different every day, even if the content is the same, you can use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;crcSalt = &amp;lt;SOURCE&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(including the angle brackets)&lt;/P&gt;&lt;P&gt;In order to append the&amp;nbsp;full directory path of the source file to the CRC.&lt;/P&gt;&lt;P&gt;That will make sure you are reading this file every single day.&lt;/P&gt;&lt;P&gt;If the file path or name don't change then is there anything you can do to modify the output, adding perhaps a timestamp to the raw data? Or alternatively, can you select different destination directories or append today's name to the file name in order to make it work with crcSalt=&amp;lt;SOURCE&amp;gt;?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 10:13:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-configuration-for-files-where-content-only-sometimes/m-p/551829#M91579</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2021-05-17T10:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf configuration for files where content only sometimes changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-configuration-for-files-where-content-only-sometimes/m-p/551831#M91580</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/859"&gt;@RobertRi&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the easiest way to intervene is to change the name of the output file to read and use crcSalt = &amp;lt;SOURCE&amp;gt; (eventually using a scheduled script) but I don't know if this workaround is acceptable for you.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 10:13:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-configuration-for-files-where-content-only-sometimes/m-p/551831#M91580</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-05-17T10:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf configuration for files where content only sometimes changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-configuration-for-files-where-content-only-sometimes/m-p/551832#M91581</link>
      <description>&lt;P&gt;Hi J.!&lt;/P&gt;&lt;P&gt;No, the path or filename doesn't change, only the mtime&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Robert&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 10:13:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-configuration-for-files-where-content-only-sometimes/m-p/551832#M91581</guid>
      <dc:creator>RobertRi</dc:creator>
      <dc:date>2021-05-17T10:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf configuration for files where content only sometimes changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-configuration-for-files-where-content-only-sometimes/m-p/551834#M91582</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there anything you can do to modify the output, adding perhaps a timestamp to the raw data? Or alternatively, can you select different destination directories or append today's name to the file name in order to make it work with crcSalt=&amp;lt;SOURCE&amp;gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alternatively, you could have a small cron job that uses awk to read that inputs.conf file and modifies the crcSalt every day for that particular stanza and then restarts splunk. Sounds a bit overengineering, but if you can't alter the way this way is written ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or following the same logic, a small job that appends the current time to the end of the file or moves the file somewhere else that is different every day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Another option is to use btprobe from the CLI to force a reindex of the file:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk cmd btprobe -d $SPLUNK_HOME/var/lib/splunk/fishbucket/splunk_private_db --file $FILE --reset&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Example:&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Archive/Use-btprobe-reset-to-re-index-multiple-files/m-p/313186" target="_blank"&gt;https://community.splunk.com/t5/Archive/Use-btprobe-reset-to-re-index-multiple-files/m-p/313186&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 10:24:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-configuration-for-files-where-content-only-sometimes/m-p/551834#M91582</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2021-05-17T10:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf configuration for files where content only sometimes changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-configuration-for-files-where-content-only-sometimes/m-p/551849#M91583</link>
      <description>&lt;P&gt;Ciao Giuseppe!&lt;/P&gt;&lt;P&gt;Grazie per la tua risposta!&lt;/P&gt;&lt;P&gt;I will follow this solution, that looks good for me!&lt;/P&gt;&lt;P&gt;Buona giornata!&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 10:57:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-configuration-for-files-where-content-only-sometimes/m-p/551849#M91583</guid>
      <dc:creator>RobertRi</dc:creator>
      <dc:date>2021-05-17T10:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf configuration for files where content only sometimes changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-configuration-for-files-where-content-only-sometimes/m-p/551850#M91584</link>
      <description>&lt;P&gt;Thanks J.!&lt;/P&gt;&lt;P&gt;I will follow your advice and try to modify the filename and have crcSalt in place!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 10:59:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-configuration-for-files-where-content-only-sometimes/m-p/551850#M91584</guid>
      <dc:creator>RobertRi</dc:creator>
      <dc:date>2021-05-17T10:59:36Z</dc:date>
    </item>
  </channel>
</rss>

