<?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 edit inputs.conf on my Splunk forwarder to send CSV data for a second index? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-on-my-Splunk-forwarder-to-send-CSV-data/m-p/320588#M59823</link>
    <description>&lt;P&gt;Hello, I tried running, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk btool inputs list --debug 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It shows correct syntax, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunkforwarder/etc/apps/jira-maestro/local/inputs.conf               [monitor:///opt/jira-maestro/plugins/nessus/csv/report.csv]
/opt/splunkforwarder/etc/system/default/inputs.conf                        _rcvbuf = 1572864
/opt/splunkforwarder/etc/apps/jira-maestro/local/inputs.conf               disabled = false
/opt/splunkforwarder/etc/system/default/inputs.conf                        host = $decideOnStartup
/opt/splunkforwarder/etc/apps/jira-maestro/local/inputs.conf               index = nessus
/opt/splunkforwarder/etc/apps/jira-maestro/local/inputs.conf               sourcetype = csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also tried copying the csv file to some other location ,for example /opt/test&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/test/report.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;created a new input.conf, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  [default]
  index = nessus 
  [monitor:///opt/test]
  whitelist = ^.*.csv
  sourcetype = csv
  disabled = false
  initCrcLength = 1048575
  crcSalt = /opt/test
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restarted forwarded, nothing gets sent to indexer, also tried modfying report.csv file to generate a change,  using vim&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;04-07-2017 14:03:49.845 -0400 INFO  WatchedFile - Will begin reading at offset=45491 for file='/opt/test/report.csv'.
04-07-2017 14:03:49.849 -0400 INFO  WatchedFile - Resetting fd to re-extract header.
04-07-2017 13:53:06.534 -0400 WARN  FileClassifierManager - The file '/opt/test/.report.csv.swp' is invalid. Reason: binary
04-07-2017 13:53:06.534 -0400 INFO  TailReader - Ignoring file '/opt/test/.report.csv.swp' due to: binary
04-07-2017 13:53:10.667 -0400 WARN  FileClassifierManager - The file '/opt/test/.report.csv.swp' is invalid. Reason: binary
04-07-2017 13:53:10.667 -0400 INFO  TailReader - Ignoring file '/opt/test/.report.csv.swp' due to: binary
04-07-2017 13:53:13.984 -0400 INFO  WatchedFile - Will begin reading at offset=45491 for file='/opt/test/report.csv'.
04-07-2017 13:53:13.984 -0400 INFO  WatchedFile - Resetting fd to re-extract header.
04-07-2017 13:53:13.985 -0400 WARN  TailReader - Insufficient permissions to read file='/opt/test/.report.csv.swp' (hint: No such file or directory ,                            UID: 0, GID: 0).
04-07-2017 13:53:16.989 -0400 INFO  WatchedFile - Resetting fd to re-extract header.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;also tried injecting a new column into csv to keep track of timestamp in format of "2017-04-07 11:38:53,008"&lt;/P&gt;

&lt;P&gt;Nothing is being sent to indexer. Indexer splunkd log doesnt show anything coming in for this report.csv  All permissions are splunk user + 644 on the report.csv file&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2017 18:06:39 GMT</pubDate>
    <dc:creator>perfecto25</dc:creator>
    <dc:date>2017-04-07T18:06:39Z</dc:date>
    <item>
      <title>How to edit inputs.conf on my Splunk forwarder to send CSV data for a second index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-on-my-Splunk-forwarder-to-send-CSV-data/m-p/320586#M59821</link>
      <description>&lt;P&gt;Hello, I have an inputs.conf on my forwarder setup like this, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/jira-maestro/plugins/bintray_url/csv/*.csv]
index=bintray
sourcetype=csv

[monitor:///opt/jira-maestro/plugins/nessus/csv/*.csv]
index=nessus
sourcetype=csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;forwarder sends data for the 1st index, "bintray", but I cant get it to send for 2nd index "nessus"&lt;/P&gt;

&lt;P&gt;I enabled DEBUG for Tailing Processor, getting tons of msg like this in splunkd.log&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;38915394548.tmp', does not match path='/opt/jira-maestro/plugins/nessus/csv' :Not a directory :Not a symlink
04-06-2017 16:07:04.657 -0400 DEBUG TailingProcessor -   Skipping itemPath='/opt/atlassian/jira/temp/imageio2771437074019475859.tmp', does not match path='/opt/jira-maestro/plugins/nessus/csv' :Not a directory :Not a symlink
04-06-2017 16:07:04.663 -0400 DEBUG TailingProcessor -   Skipping itemPath='/opt/atlassian/jira/temp/imageio1428026418037972330.tmp', does not match path='/opt/jira-maestro/plugins/nessus/csv' :Not a directory :Not a symlink
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not sure where else to troubleshoot. Spent entire day trying to get it to send data over. &lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 20:08:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-on-my-Splunk-forwarder-to-send-CSV-data/m-p/320586#M59821</guid>
      <dc:creator>perfecto25</dc:creator>
      <dc:date>2017-04-06T20:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf on my Splunk forwarder to send CSV data for a second index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-on-my-Splunk-forwarder-to-send-CSV-data/m-p/320587#M59822</link>
      <description>&lt;P&gt;Do you have any errors about file access permisisons or similar? Can the Splunk user read the files in the directory?&lt;/P&gt;

&lt;P&gt;Try running:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk btool inputs list --debug 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If that shows the information you expect just double check that the monitor information was printed on the startup of the forwarder.&lt;BR /&gt;
Finally you might want to check the metrics log file and see if the log is mentioned (it might or might not mention the sourcetype/index/source depending on how busy the forwarder is), if it does then you might have an issue finding the data rather than an issue with the data getting indexed.&lt;/P&gt;

&lt;P&gt;Good luck&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 00:47:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-on-my-Splunk-forwarder-to-send-CSV-data/m-p/320587#M59822</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2017-04-07T00:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf on my Splunk forwarder to send CSV data for a second index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-on-my-Splunk-forwarder-to-send-CSV-data/m-p/320588#M59823</link>
      <description>&lt;P&gt;Hello, I tried running, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk btool inputs list --debug 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It shows correct syntax, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunkforwarder/etc/apps/jira-maestro/local/inputs.conf               [monitor:///opt/jira-maestro/plugins/nessus/csv/report.csv]
/opt/splunkforwarder/etc/system/default/inputs.conf                        _rcvbuf = 1572864
/opt/splunkforwarder/etc/apps/jira-maestro/local/inputs.conf               disabled = false
/opt/splunkforwarder/etc/system/default/inputs.conf                        host = $decideOnStartup
/opt/splunkforwarder/etc/apps/jira-maestro/local/inputs.conf               index = nessus
/opt/splunkforwarder/etc/apps/jira-maestro/local/inputs.conf               sourcetype = csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also tried copying the csv file to some other location ,for example /opt/test&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/test/report.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;created a new input.conf, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  [default]
  index = nessus 
  [monitor:///opt/test]
  whitelist = ^.*.csv
  sourcetype = csv
  disabled = false
  initCrcLength = 1048575
  crcSalt = /opt/test
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restarted forwarded, nothing gets sent to indexer, also tried modfying report.csv file to generate a change,  using vim&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;04-07-2017 14:03:49.845 -0400 INFO  WatchedFile - Will begin reading at offset=45491 for file='/opt/test/report.csv'.
04-07-2017 14:03:49.849 -0400 INFO  WatchedFile - Resetting fd to re-extract header.
04-07-2017 13:53:06.534 -0400 WARN  FileClassifierManager - The file '/opt/test/.report.csv.swp' is invalid. Reason: binary
04-07-2017 13:53:06.534 -0400 INFO  TailReader - Ignoring file '/opt/test/.report.csv.swp' due to: binary
04-07-2017 13:53:10.667 -0400 WARN  FileClassifierManager - The file '/opt/test/.report.csv.swp' is invalid. Reason: binary
04-07-2017 13:53:10.667 -0400 INFO  TailReader - Ignoring file '/opt/test/.report.csv.swp' due to: binary
04-07-2017 13:53:13.984 -0400 INFO  WatchedFile - Will begin reading at offset=45491 for file='/opt/test/report.csv'.
04-07-2017 13:53:13.984 -0400 INFO  WatchedFile - Resetting fd to re-extract header.
04-07-2017 13:53:13.985 -0400 WARN  TailReader - Insufficient permissions to read file='/opt/test/.report.csv.swp' (hint: No such file or directory ,                            UID: 0, GID: 0).
04-07-2017 13:53:16.989 -0400 INFO  WatchedFile - Resetting fd to re-extract header.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;also tried injecting a new column into csv to keep track of timestamp in format of "2017-04-07 11:38:53,008"&lt;/P&gt;

&lt;P&gt;Nothing is being sent to indexer. Indexer splunkd log doesnt show anything coming in for this report.csv  All permissions are splunk user + 644 on the report.csv file&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 18:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-on-my-Splunk-forwarder-to-send-CSV-data/m-p/320588#M59823</guid>
      <dc:creator>perfecto25</dc:creator>
      <dc:date>2017-04-07T18:06:39Z</dc:date>
    </item>
  </channel>
</rss>

