<?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: Help with monitor stanza for a csv file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423122#M74321</link>
    <description>&lt;P&gt;This is the latest error I got.Is it permission issue and I am doing this on my deployment server.so if I list the monitor it is all the splunk logs.I used the crc but does this re index the files or it applies to new files coming?&lt;/P&gt;

&lt;P&gt;Using logging configuration at /opt/splunk/etc/log-cmdline.cfg.&lt;BR /&gt;
WARN  FileClassifierManager - Unable to open '///home/reports/&lt;EM&gt;.csv'.&lt;BR /&gt;
WARN  FileClassifierManager - The file '///home/reports/&lt;/EM&gt;.csv' is invalid. Reason: cannot_open&lt;BR /&gt;
PROPERTIES OF ///home/reports/*.csv&lt;BR /&gt;
PropertiesMap: {CHARSET -&amp;gt; 'UTF-8' invalid_cause -&amp;gt; 'cannot_open' is_valid -&amp;gt; 'False' sourcetype -&amp;gt; 'unknown'}&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 22:17:45 GMT</pubDate>
    <dc:creator>vrmandadi</dc:creator>
    <dc:date>2020-09-29T22:17:45Z</dc:date>
    <item>
      <title>Help with monitor stanza for a csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423118#M74317</link>
      <description>&lt;P&gt;Below is the path of the csv file&lt;/P&gt;

&lt;P&gt;/home/reports/8e20594b-282a-493e-ad9a-dc69e0ac676c.csv and I am using the monitor stanza as below&lt;/P&gt;

&lt;P&gt;[monitor:///home/reports/*.csv]&lt;BR /&gt;
recursive = true&lt;BR /&gt;
index = main&lt;BR /&gt;
sourcetype = rf      &lt;/P&gt;

&lt;P&gt;The sourcetype I made some props.conf changes&lt;/P&gt;

&lt;P&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
INDEXED_EXTRACTIONS=csv&lt;BR /&gt;
KV_MODE=none&lt;BR /&gt;
category=Structured&lt;BR /&gt;
disabled=false&lt;BR /&gt;
pulldown_type=true&lt;BR /&gt;
TIMESTAMP_FIELDS=Timestamp&lt;BR /&gt;
HEADER_FIELD_LINE_NUMBER=1&lt;/P&gt;

&lt;P&gt;But I am only able to see one file&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423118#M74317</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-09-29T22:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with monitor stanza for a csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423119#M74318</link>
      <description>&lt;P&gt;It's something to do with the file header, where splunk is thinking that it has already read the file..&lt;BR /&gt;
you can either increase the initCrcLength or use crcSalt = &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///home/reports/*.csv]
recursive = true
index = main
sourcetype = rf

##defaults to 256bytes
initCrcLength = 1024

##if the above setting didn't work 
crcSalt = &amp;lt;SOURCE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;read this Splunk doc for more info...&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.1/Admin/Inputsconf#MONITOR:"&gt;http://docs.splunk.com/Documentation/Splunk/7.2.1/Admin/Inputsconf#MONITOR:&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 20:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423119#M74318</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2018-12-04T20:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help with monitor stanza for a csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423120#M74319</link>
      <description>&lt;P&gt;I tried the above but it did not work.I removed the stanza recursive=true.Should I add it ? and is there way to re index the data after applying these changes&lt;/P&gt;

&lt;P&gt;I tried the test command and below is the output&lt;/P&gt;

&lt;P&gt;./splunk test sourcetype ///home/reports/*csv&lt;/P&gt;

&lt;P&gt;Using logging configuration at /opt/splunk/etc/log-cmdline.cfg.&lt;BR /&gt;
WARN  FileClassifierManager - The file '///home/reports/*csv' is invalid. Reason: failed_stat&lt;BR /&gt;
PROPERTIES OF ///home/reports/*csv&lt;BR /&gt;
PropertiesMap: {CHARSET -&amp;gt; 'UTF-8' invalid_cause -&amp;gt; 'failed_stat' is_valid -&amp;gt; 'False' sourcetype -&amp;gt; 'unknown'}&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423120#M74319</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-09-29T22:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help with monitor stanza for a csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423121#M74320</link>
      <description>&lt;P&gt;Did you try crcSalt = ..??&lt;BR /&gt;
using recursive depends on whether or not to monitor subdirectories..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;recursive = &amp;lt;boolean&amp;gt;
* Whether or not the input monitors subdirectories that it finds within a 
  monitored directory.
* If you set this setting to "false", the input does not monitor sub-directories
* Default: true.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What's your directory structure in your monitor stanza..??&lt;BR /&gt;
Can you run this commands to check the status of your file...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk list monitor 
./splunk list inputstatus
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can you post a sample csv data, and also is there any specific reason to use HEADER_FIELD_LINE_NUMBER in props..??&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:17:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423121#M74320</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2020-09-29T22:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help with monitor stanza for a csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423122#M74321</link>
      <description>&lt;P&gt;This is the latest error I got.Is it permission issue and I am doing this on my deployment server.so if I list the monitor it is all the splunk logs.I used the crc but does this re index the files or it applies to new files coming?&lt;/P&gt;

&lt;P&gt;Using logging configuration at /opt/splunk/etc/log-cmdline.cfg.&lt;BR /&gt;
WARN  FileClassifierManager - Unable to open '///home/reports/&lt;EM&gt;.csv'.&lt;BR /&gt;
WARN  FileClassifierManager - The file '///home/reports/&lt;/EM&gt;.csv' is invalid. Reason: cannot_open&lt;BR /&gt;
PROPERTIES OF ///home/reports/*.csv&lt;BR /&gt;
PropertiesMap: {CHARSET -&amp;gt; 'UTF-8' invalid_cause -&amp;gt; 'cannot_open' is_valid -&amp;gt; 'False' sourcetype -&amp;gt; 'unknown'}&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423122#M74321</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-09-29T22:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help with monitor stanza for a csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423123#M74322</link>
      <description>&lt;P&gt;I checked the internal logs and below are the errors.The below logs are before the changes you have mentioned.Does the new files coming into splunk have the correct format and files coming in?&lt;/P&gt;

&lt;P&gt;12-04-2018 12:11:13.581 -0500 INFO  WatchedFile - File too small to check seekcrc, probably truncated.  Will re-read entire file='/home/reports/8e20594b-282a-493e-ad9a-dc69e0ac676c.csv'.&lt;/P&gt;

&lt;P&gt;12-04-2018 12:11:13.579 -0500 ERROR TailReader - File will not be read, is too small to match seekptr checksum (file=/home/reports/1bc778b1-47e5-4b72-bfed-798d84cddfd4.csv).  Last time we saw this initcrc, filename was different.  You may wish to use larger initCrcLen for this sourcetype, or a CRC salt on this source.  Consult the documentation or file a support case online at &lt;A href="http://www.splunk.com/page/submit_issue"&gt;http://www.splunk.com/page/submit_issue&lt;/A&gt; for more info.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 21:32:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423123#M74322</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2018-12-04T21:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with monitor stanza for a csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423124#M74323</link>
      <description>&lt;P&gt;It won't reindex the same file again once it's indexed, you have to reset the checkpoint of a specific file or delete the fishbucket(this will reindex all data on that box)&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/46780/reset-splunkforwarder-to-re-read-file-from-beginning.html"&gt;https://answers.splunk.com/answers/46780/reset-splunkforwarder-to-re-read-file-from-beginning.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 22:01:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423124#M74323</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2018-12-04T22:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with monitor stanza for a csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423125#M74324</link>
      <description>&lt;P&gt;I got the data into Splunk but it is not breaking correctly.I initially done a testing through Web interface and it breaks correctly but does not break correctly through monitor stanza.Below is the props I used .The timestamp field in csv file is the below format&lt;/P&gt;

&lt;P&gt;2018-11-23T04:17:30-05:00&lt;/P&gt;

&lt;P&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
INDEXED_EXTRACTIONS=csv&lt;BR /&gt;
KV_MODE=none&lt;BR /&gt;
category=Structured&lt;BR /&gt;
disabled=false&lt;BR /&gt;
pulldown_type=true&lt;BR /&gt;
TIMESTAMP_FIELDS=Timestamp&lt;BR /&gt;
HEADER_FIELD_LINE_NUMBER=&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:17:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423125#M74324</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-09-29T22:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help with monitor stanza for a csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423126#M74325</link>
      <description>&lt;P&gt;@vrmandadi - have you placed the &lt;CODE&gt;props.conf&lt;/CODE&gt; on the forwarder as well?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 00:34:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423126#M74325</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-12-05T00:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with monitor stanza for a csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423127#M74326</link>
      <description>&lt;P&gt;Yes i did place it in the forwarder as well&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 01:10:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-monitor-stanza-for-a-csv-file/m-p/423127#M74326</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2018-12-05T01:10:39Z</dc:date>
    </item>
  </channel>
</rss>

