<?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: Adding text file into splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314642#M58910</link>
    <description>&lt;P&gt;You can run this script as a scripted input that kicks off on a given cron schedule. Or, if you've scheduled this script to run locally and write to sample.out as you indicated you can have Splunk read sample.out using a monitor input stanza.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/WhatSplunkcanmonitor"&gt;Getting Data Into Splunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.3/Data/Monitorfilesanddirectories"&gt;Monitoring Files and Directories&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2017 19:27:27 GMT</pubDate>
    <dc:creator>dflodstrom</dc:creator>
    <dc:date>2017-04-06T19:27:27Z</dc:date>
    <item>
      <title>Adding text file into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314641#M58909</link>
      <description>&lt;P&gt;I have a script containing ip and value.&lt;BR /&gt;
Sh basic.sh&amp;gt;&amp;gt;sample.out&lt;BR /&gt;
Know to get the logs i need to add this sample.out file to splunk like&lt;BR /&gt;
/opt/splunkforwarder/bin/splunk add monitor sample.out.&lt;BR /&gt;
Then i the files will comes into splunk..&lt;BR /&gt;
But the problem is i want that script to be run everyone one hour..everytime adding that output file to splunk is not a good idea..Is there any way to schedule automatically or monitor that output file all the time...&lt;BR /&gt;
Can anyone help me...&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 17:59:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314641#M58909</guid>
      <dc:creator>prathapkcsc</dc:creator>
      <dc:date>2017-04-06T17:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding text file into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314642#M58910</link>
      <description>&lt;P&gt;You can run this script as a scripted input that kicks off on a given cron schedule. Or, if you've scheduled this script to run locally and write to sample.out as you indicated you can have Splunk read sample.out using a monitor input stanza.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/WhatSplunkcanmonitor"&gt;Getting Data Into Splunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.3/Data/Monitorfilesanddirectories"&gt;Monitoring Files and Directories&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 19:27:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314642#M58910</guid>
      <dc:creator>dflodstrom</dc:creator>
      <dc:date>2017-04-06T19:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding text file into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314643#M58911</link>
      <description>&lt;P&gt;Are you saying you want to add it once, and never again? &lt;/P&gt;

&lt;P&gt;Or are you saying you want the new data to be loaded every hour when it runs?  &lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 19:38:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314643#M58911</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-06T19:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding text file into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314644#M58912</link>
      <description>&lt;P&gt;Yes..I want to add that script output file sample.out once to the splunk path...&lt;BR /&gt;
I want to avoid this thing &lt;BR /&gt;
"/opt/splunkforwarder/bin/splunk add monitor sample.out"..&lt;BR /&gt;
Splunk has to monitor changes in that outfile automatically&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 20:12:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314644#M58912</guid>
      <dc:creator>prathapkcsc</dc:creator>
      <dc:date>2017-04-06T20:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding text file into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314645#M58913</link>
      <description>&lt;P&gt;[monitor://$SPLUNK_HOME/var/log/splunk]&lt;/P&gt;

&lt;P&gt;can i add that output file to this path..&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 04:47:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314645#M58913</guid>
      <dc:creator>prathapkcsc</dc:creator>
      <dc:date>2017-04-07T04:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Adding text file into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314646#M58914</link>
      <description>&lt;P&gt;"/opt/splunkforwarder/bin/splunk add monitor filename"&lt;BR /&gt;
i want to avoid this above thing everytime.&lt;BR /&gt;
can you give me the correct solution&lt;BR /&gt;
Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 04:49:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314646#M58914</guid>
      <dc:creator>prathapkcsc</dc:creator>
      <dc:date>2017-04-07T04:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding text file into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314647#M58915</link>
      <description>&lt;P&gt;Splunk will automatically monitor changes in that outfile automatically!&lt;/P&gt;

&lt;P&gt;You can either append data to the file, or create a new file each time, but Splunk will get updates made to it. You just need to use a monitor clause that you've already done with that add monitor command (check etc\system\local\inputs.conf, it should be listed there).&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 06:20:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314647#M58915</guid>
      <dc:creator>sduff_splunk</dc:creator>
      <dc:date>2017-04-07T06:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding text file into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314648#M58916</link>
      <description>&lt;P&gt;[monitor://$SPLUNK_HOME/var/log/splunk]&lt;/P&gt;

&lt;P&gt;this one right?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 06:28:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314648#M58916</guid>
      <dc:creator>prathapkcsc</dc:creator>
      <dc:date>2017-04-07T06:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding text file into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314649#M58917</link>
      <description>&lt;P&gt;if i place my output file inside this path SPLUNK_HOME/var/log/splunk...&lt;BR /&gt;
wiill it detect the changes automatically?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 06:29:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314649#M58917</guid>
      <dc:creator>prathapkcsc</dc:creator>
      <dc:date>2017-04-07T06:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding text file into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314650#M58918</link>
      <description>&lt;P&gt;Add the following to etc\system\local\inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://path/to/your/file/outfile]
index=main
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Refer to &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.3/Admin/Inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.3/Admin/Inputsconf&lt;/A&gt; and &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.3/Data/WhatSplunkcanmonitor"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.3/Data/WhatSplunkcanmonitor&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 06:34:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314650#M58918</guid>
      <dc:creator>sduff_splunk</dc:creator>
      <dc:date>2017-04-07T06:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding text file into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314651#M58919</link>
      <description>&lt;P&gt;[monitor://$SPLUNK_HOME/var/log/splunk/outputfile]&lt;BR /&gt;
index=my_log_index_name&lt;/P&gt;

&lt;P&gt;Thats it right??&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:34:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/314651#M58919</guid>
      <dc:creator>prathapkcsc</dc:creator>
      <dc:date>2020-09-29T13:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding text file into splunk  updated URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/681301#M113829</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.0/Data/WhatSplunkcanmonitor" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.0/Data/WhatSplunkcanmonitor&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 01:11:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-text-file-into-splunk/m-p/681301#M113829</guid>
      <dc:creator>venkataakhilesh</dc:creator>
      <dc:date>2024-03-20T01:11:56Z</dc:date>
    </item>
  </channel>
</rss>

