<?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: File Monitroring issue- Why did csv file stop getting ingested into splunk after few hours? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/File-Monitroring-issue-Why-did-csv-file-stop-getting-ingested/m-p/615742#M106436</link>
    <description>&lt;P&gt;That's not how Splunk works to monitor files.&amp;nbsp; Splunk looks for *new* data because it already has the old data.&amp;nbsp; Completely replacing the file confuses the heck out of the monitor.&lt;/P&gt;&lt;P&gt;If the file is untouched except for the hourly refresh then consider a batch input instead of a monitor.&amp;nbsp; Keep in mind that Splunk will delete the file after ingesting it so this may not be the right choice if the file is needed for other purposes.&lt;/P&gt;&lt;P&gt;Another option is a scripted input.&amp;nbsp; Write a short Python script that reads the file and write it to stdout.&amp;nbsp; Set up that script as a Splunk Scripted Input to run every hour a few minutes after the file is scheduled to refresh.&amp;nbsp; Splunk will ingest everything written to stdout and the file will remain.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2022 00:26:02 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-10-04T00:26:02Z</dc:date>
    <item>
      <title>File Monitroring issue- Why did csv file stop getting ingested into splunk after few hours?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-Monitroring-issue-Why-did-csv-file-stop-getting-ingested/m-p/615726#M106434</link>
      <description>&lt;P&gt;facing this issue second time, and tried almost every possible way out in last 2 months, so here is the csv file we're which is getting referesh in every 1 hour, ( it may or may not contain new events )&lt;BR /&gt;&lt;BR /&gt;We observed after few hours file stop getting into splunk and after splunk restart again it start ingesting data.&lt;BR /&gt;&lt;BR /&gt;In the splunkd logs its says ignoring path,&lt;BR /&gt;&lt;BR /&gt;I have tried crcSalt, initCrcLenth but non worked in my case&lt;BR /&gt;&lt;BR /&gt;All i want splunk is to read new file always no matter is there is new events or not, just stay updated with file&lt;BR /&gt;( i cannot add counter in file )&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 21:32:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-Monitroring-issue-Why-did-csv-file-stop-getting-ingested/m-p/615726#M106434</guid>
      <dc:creator>Zacknoid</dc:creator>
      <dc:date>2022-10-03T21:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: File Monitroring issue- Why did csv file stop getting ingested into splunk after few hours?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-Monitroring-issue-Why-did-csv-file-stop-getting-ingested/m-p/615742#M106436</link>
      <description>&lt;P&gt;That's not how Splunk works to monitor files.&amp;nbsp; Splunk looks for *new* data because it already has the old data.&amp;nbsp; Completely replacing the file confuses the heck out of the monitor.&lt;/P&gt;&lt;P&gt;If the file is untouched except for the hourly refresh then consider a batch input instead of a monitor.&amp;nbsp; Keep in mind that Splunk will delete the file after ingesting it so this may not be the right choice if the file is needed for other purposes.&lt;/P&gt;&lt;P&gt;Another option is a scripted input.&amp;nbsp; Write a short Python script that reads the file and write it to stdout.&amp;nbsp; Set up that script as a Splunk Scripted Input to run every hour a few minutes after the file is scheduled to refresh.&amp;nbsp; Splunk will ingest everything written to stdout and the file will remain.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 00:26:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-Monitroring-issue-Why-did-csv-file-stop-getting-ingested/m-p/615742#M106436</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-04T00:26:02Z</dc:date>
    </item>
  </channel>
</rss>

