<?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 do I set the inputs.conf file for continuous monitoring of an input file for appended data? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317250#M59305</link>
    <description>&lt;P&gt;Right I see. I noticed in the monitor section, the filename is of type csv, my one however is of type log, would that be a problem? &lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2017 15:40:31 GMT</pubDate>
    <dc:creator>mahbs</dc:creator>
    <dc:date>2017-10-18T15:40:31Z</dc:date>
    <item>
      <title>How do I set the inputs.conf file for continuous monitoring of an input file for appended data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317246#M59301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I've uploaded a txt file containing CPU performance data to splunk, set the source type to csv and have created an index. I've been able to generate a report from this. &lt;/P&gt;

&lt;P&gt;Data is coming from the txt file correctly under correct index and sourcetype, but the problem is that the file is constantly appended with new data and the appended data doesn't come up until I add the same file again from data inputs and do the same steps again.&lt;/P&gt;

&lt;P&gt;Can someone please help on how to get the data indexed in Splunk as soon as the input file gets updated? From my research, I've found that I need to customize the inputs.conf file, but I have no idea where to start.&lt;/P&gt;

&lt;P&gt;Your help would be very much appreciated&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 13:50:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317246#M59301</guid>
      <dc:creator>mahbs</dc:creator>
      <dc:date>2017-10-18T13:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the inputs.conf file for continuous monitoring of an input file for appended data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317247#M59302</link>
      <description>&lt;P&gt;When you say you've uploaded the file to Splunk, do you mean that you copied it from elsewhere and used the "Upload" option under "Add Data"?&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3694iA6772B39013CE126/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;If you upload a file, it will not be monitored for new data; it will only be indexed once. If the file is on your indexer, you can use the "Monitor" option from "Add Data" to allow Splunk to monitor the file for new data. If the file is on another computer, you'll need some way for that data to reach the indexer - either by installing a universal forwarder on that computer and adding the file as a monitored data source or via another method (e.g. syslog forwarding).&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 14:54:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317247#M59302</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2017-10-18T14:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the inputs.conf file for continuous monitoring of an input file for appended data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317248#M59303</link>
      <description>&lt;P&gt;Right, I already have a universal forwarder set up. I guess my question is, what is the correct syntax in the inputs.conf file to ensure that the desired file is monitored and then sent to splunk?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:18:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317248#M59303</guid>
      <dc:creator>mahbs</dc:creator>
      <dc:date>2017-10-18T15:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the inputs.conf file for continuous monitoring of an input file for appended data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317249#M59304</link>
      <description>&lt;P&gt;Hi mahbs,&lt;BR /&gt;
see &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Usingforwardingagents"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Usingforwardingagents&lt;/A&gt;&lt;BR /&gt;
on your forwarder create a stanza in inputs.conf that contains:&lt;BR /&gt;
if Unix&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///your_path/your_filename.csv]
disabled=0
index=your_index
sourcetype=csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if Windows&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://c:\your_path\your_filename.csv]
disabled=0
index=your_index
sourcetype=csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restart forwarder and you'll start to receive logs (if Forwarder is correctly configured to send logs to your indexers).&lt;/P&gt;

&lt;P&gt;For test you can create this inputs.conf in $SPLUNK_HOME/etc/systel/local, if it's a production system, it's better to create a Technical Addon (TA) containing this inputs.conf and deploy it using a Deployment Server.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:35:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317249#M59304</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-10-18T15:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the inputs.conf file for continuous monitoring of an input file for appended data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317250#M59305</link>
      <description>&lt;P&gt;Right I see. I noticed in the monitor section, the filename is of type csv, my one however is of type log, would that be a problem? &lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:40:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317250#M59305</guid>
      <dc:creator>mahbs</dc:creator>
      <dc:date>2017-10-18T15:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the inputs.conf file for continuous monitoring of an input file for appended data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317251#M59306</link>
      <description>&lt;P&gt;In monitor put path and name of your file.&lt;BR /&gt;
Remember that props.conf os usually located on indexers.&lt;BR /&gt;
Only ingesting csv files must be located also on forwarders.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe &lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317251#M59306</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-10-18T15:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the inputs.conf file for continuous monitoring of an input file for appended data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317252#M59307</link>
      <description>&lt;P&gt;Hi, it can't seem the find the file, my path is something like this: foo/foo1/x.log &amp;lt;- is that a legal path?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317252#M59307</guid>
      <dc:creator>mahbs</dc:creator>
      <dc:date>2017-10-19T09:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the inputs.conf file for continuous monitoring of an input file for appended data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317253#M59308</link>
      <description>&lt;P&gt;Hi mahbs,&lt;BR /&gt;
to be sure of your path go in CLI and use the same path with &lt;CODE&gt;ls -al&lt;/CODE&gt; command: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ls -al /foo/foo1/x.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if you can find it use this path in monitor, otherwise search the correct one:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///foo/foo1/x.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;note that after &lt;CODE&gt;monitor:&lt;/CODE&gt; you have always two slashes and a third one from the path, totally three slashes.&lt;BR /&gt;
Only to understand: monitoring a windows path you have&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://c:\temp\log.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317253#M59308</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-10-19T09:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the inputs.conf file for continuous monitoring of an input file for appended data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317254#M59309</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;

&lt;P&gt;Apologies for the non -stop questions. I've found out the correct path, its: /foo/foo1/foo1.1/x.log&lt;/P&gt;

&lt;P&gt;so essentially my path should be like this:&lt;/P&gt;

&lt;P&gt;[monitor:///foo/foo1/foo1.1/x.log]&lt;BR /&gt;
disabled=0&lt;BR /&gt;
index=your_index&lt;BR /&gt;
 sourcetype=csv&lt;/P&gt;

&lt;P&gt;For some reason, splunk is still not being updated. Am I missing anything?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:39:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317254#M59309</guid>
      <dc:creator>mahbs</dc:creator>
      <dc:date>2017-10-19T09:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the inputs.conf file for continuous monitoring of an input file for appended data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317255#M59310</link>
      <description>&lt;P&gt;Hi mahbs,&lt;BR /&gt;
you said that new data are added to the same file, is it correct?&lt;BR /&gt;
The easiest way is to have different filenames (e.g. x_20171019.txt).&lt;BR /&gt;
Otherwise there could be a problem because Splunk check the first 256 chars to find differences and to add new events.&lt;/P&gt;

&lt;P&gt;To change this parameter is a delicate operation (see &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.0/Admin/Inputsconf"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.0/Admin/Inputsconf&lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;initCrcLength = &lt;BR /&gt;
* This setting adjusts how much of a file the input reads before trying to identify whether it is a file that has already been seen. You might want to  adjust this if you have many files with common headers (comment headers,  long CSV headers, etc) and recurring filenames.&lt;BR /&gt;
* CAUTION: Improper use of this setting will cause data to be re-indexed.  You   might want to consult with Splunk Support before adjusting this value - the   default is fine for most installations.&lt;BR /&gt;
* Defaults to 256 (bytes).&lt;BR /&gt;
* Must be in the range 256-1048576.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 11:21:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317255#M59310</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-10-19T11:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the inputs.conf file for continuous monitoring of an input file for appended data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317256#M59311</link>
      <description>&lt;P&gt;Hey Giuseppe, I think I've made some progress. This is the message im getting in splunk::&lt;BR /&gt;
 Received event for unconfigured/disabled/deleted index="xxx" What could this mean?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 11:47:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317256#M59311</guid>
      <dc:creator>mahbs</dc:creator>
      <dc:date>2017-10-19T11:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the inputs.conf file for continuous monitoring of an input file for appended data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317257#M59312</link>
      <description>&lt;P&gt;Hi mahbs,&lt;BR /&gt;
this means that the index that you set in inputs.conf doesn't exist.&lt;BR /&gt;
Try to use an existing index in inputs.conf: &lt;CODE&gt;index=&amp;lt;your_index&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 13:20:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-the-inputs-conf-file-for-continuous-monitoring-of/m-p/317257#M59312</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-10-19T13:20:03Z</dc:date>
    </item>
  </channel>
</rss>

