<?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 Why is Splunk not ingesting .txt logfiles starting with a numeric value? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Splunk-not-ingesting-txt-logfiles-starting-with-a-numeric/m-p/591133#M11955</link>
    <description>&lt;P&gt;I am trying to bring in some .txt logfiles using Splunk forwarder. There are several logs in the directory, such as Log.txt, 10Log.txt, 20Log.txt, etc. These files are changed daily, and the 10, 20, etclog.txt files are written to daily. So far, I can only get Splunk to ingest the Log.txt file and nothing else. My inputs.conf file is currently as below. I have tried to monitor just *.txt with the same results. Only Log.txt is read/ingested.&lt;/P&gt;
&lt;P&gt;[monitor://E:\Logs\CIR_Remote\*Log.txt]&lt;BR /&gt;disabled = false&lt;BR /&gt;sourcetype = LOG4NET&lt;BR /&gt;index = log4net&lt;BR /&gt;initCrcLength=1024&lt;/P&gt;
&lt;P&gt;any input would be appreciated!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2022 21:02:07 GMT</pubDate>
    <dc:creator>dbrooks_CIR</dc:creator>
    <dc:date>2022-03-28T21:02:07Z</dc:date>
    <item>
      <title>Why is Splunk not ingesting .txt logfiles starting with a numeric value?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Splunk-not-ingesting-txt-logfiles-starting-with-a-numeric/m-p/591133#M11955</link>
      <description>&lt;P&gt;I am trying to bring in some .txt logfiles using Splunk forwarder. There are several logs in the directory, such as Log.txt, 10Log.txt, 20Log.txt, etc. These files are changed daily, and the 10, 20, etclog.txt files are written to daily. So far, I can only get Splunk to ingest the Log.txt file and nothing else. My inputs.conf file is currently as below. I have tried to monitor just *.txt with the same results. Only Log.txt is read/ingested.&lt;/P&gt;
&lt;P&gt;[monitor://E:\Logs\CIR_Remote\*Log.txt]&lt;BR /&gt;disabled = false&lt;BR /&gt;sourcetype = LOG4NET&lt;BR /&gt;index = log4net&lt;BR /&gt;initCrcLength=1024&lt;/P&gt;
&lt;P&gt;any input would be appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 21:02:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Splunk-not-ingesting-txt-logfiles-starting-with-a-numeric/m-p/591133#M11955</guid>
      <dc:creator>dbrooks_CIR</dc:creator>
      <dc:date>2022-03-28T21:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not ingesting .txt logfiles starting with a numeric value.</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Splunk-not-ingesting-txt-logfiles-starting-with-a-numeric/m-p/591144#M11956</link>
      <description>&lt;P&gt;Check if first few lines/characters of all those files (Log.txt and &amp;lt;N&amp;gt;Log.txt) have some common header/characters. If they've some common header/characters, Splunk will think that they're rolled log files. To resolve it, you'll need to adjust initCrcLength value to be slighly more that the length of those common header/characters.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 20:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Splunk-not-ingesting-txt-logfiles-starting-with-a-numeric/m-p/591144#M11956</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-03-28T20:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not ingesting .txt logfiles starting with a numeric value.</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Splunk-not-ingesting-txt-logfiles-starting-with-a-numeric/m-p/591145#M11957</link>
      <description>&lt;P&gt;No, the files are not the same. They start with a datetime stamp, and then include error information. They have never been ingested at all, always skipped for some reason.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 20:50:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Splunk-not-ingesting-txt-logfiles-starting-with-a-numeric/m-p/591145#M11957</guid>
      <dc:creator>dbrooks_CIR</dc:creator>
      <dc:date>2022-03-28T20:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk not ingesting .txt logfiles starting with a numeric value?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Splunk-not-ingesting-txt-logfiles-starting-with-a-numeric/m-p/591147#M11958</link>
      <description>&lt;P&gt;I don't know why (didn't bother to investigate it) but I noticed that sometimes specifying wildcard path to files doesn't work whereas specifying whole directory with a whitelist matching only set of files does.&lt;/P&gt;&lt;P&gt;Unfortunately, you can't specify two different sets of files from the same directory since each input stanza must be unique.&lt;/P&gt;&lt;P&gt;Anyway, check your config with&lt;/P&gt;&lt;PRE&gt;splunk btool inputs list --debug&lt;/PRE&gt;&lt;P&gt;and verify list of monitored files with&lt;/P&gt;&lt;PRE&gt;splunk list monitor&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Mar 2022 21:05:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Splunk-not-ingesting-txt-logfiles-starting-with-a-numeric/m-p/591147#M11958</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-03-28T21:05:14Z</dc:date>
    </item>
  </channel>
</rss>

