<?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: Question on shell script for linux in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Question-on-shell-script-for-linux/m-p/64440#M2213</link>
    <description>&lt;P&gt;And also, that may not be the first task you wish to try if you're just starting out. Try monitoring /var/log/messages or some similar log file, which a) has chronological timestamps and b) gets updated fairly often. &lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2013 17:19:53 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-09-16T17:19:53Z</dc:date>
    <item>
      <title>Question on shell script for linux</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Question-on-shell-script-for-linux/m-p/64438#M2211</link>
      <description>&lt;P&gt;Hi i am new to splunk and recently just setup a forwarder (Ubuntu system) and a indexer (Window 7).&lt;BR /&gt;
Would like to use shell script to forward data to indexer but not too sure how i should code the shell script for it to work. For example if i wan to forward info on (ls -l $Home) how should i put it in the script for splunk to read it?&lt;/P&gt;

&lt;P&gt;the ls -l $Home should display something like:&lt;BR /&gt;
drwxr-xr-x 2 test test 4096 Sep 16 17:47 Desktop&lt;BR /&gt;
drwxr-xr-x 2 test test 4096 Sep 14 16:11 Documents&lt;BR /&gt;
drwxr-xr-x 2 test test 4096 Sep 14 18:02 Downloads&lt;/P&gt;

&lt;P&gt;i tried creating a test.sh with content (ls -l $Home) to test but it does not work.&lt;BR /&gt;
Really hope someone would give me an example on this thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2013 16:23:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Question-on-shell-script-for-linux/m-p/64438#M2211</guid>
      <dc:creator>darksky21</dc:creator>
      <dc:date>2013-09-16T16:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Question on shell script for linux</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Question-on-shell-script-for-linux/m-p/64439#M2212</link>
      <description>&lt;P&gt;Have you configured inputs.conf to run the script?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2013 16:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Question-on-shell-script-for-linux/m-p/64439#M2212</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-09-16T16:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Question on shell script for linux</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Question-on-shell-script-for-linux/m-p/64440#M2213</link>
      <description>&lt;P&gt;And also, that may not be the first task you wish to try if you're just starting out. Try monitoring /var/log/messages or some similar log file, which a) has chronological timestamps and b) gets updated fairly often. &lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2013 17:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Question-on-shell-script-for-linux/m-p/64440#M2213</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-09-16T17:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Question on shell script for linux</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Question-on-shell-script-for-linux/m-p/64441#M2214</link>
      <description>&lt;P&gt;Make the shell script executable, chmod a+x tesh.sh then configure it in inputs.conf. It works.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2013 18:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Question-on-shell-script-for-linux/m-p/64441#M2214</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-09-16T18:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Question on shell script for linux</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Question-on-shell-script-for-linux/m-p/64442#M2215</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You can write anything in the shell script. Just remember to make it executable and then use "scripted-inputs" method of data input to call that script.&lt;/P&gt;

&lt;P&gt;Check out &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Setupcustominputs#Add_a_scripted_input_via_inputs.conf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Setupcustominputs#Add_a_scripted_input_via_inputs.conf&lt;/A&gt; for more details.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Amit Saxena&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2013 18:23:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Question-on-shell-script-for-linux/m-p/64442#M2215</guid>
      <dc:creator>amit_saxena</dc:creator>
      <dc:date>2013-09-16T18:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Question on shell script for linux</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Question-on-shell-script-for-linux/m-p/64443#M2216</link>
      <description>&lt;P&gt;Thanks it works after changing the script to executable&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2013 01:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Question-on-shell-script-for-linux/m-p/64443#M2216</guid>
      <dc:creator>darksky21</dc:creator>
      <dc:date>2013-09-17T01:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Question on shell script for linux</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Question-on-shell-script-for-linux/m-p/64444#M2217</link>
      <description>&lt;P&gt;Thanks it works after changing the script to executable&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2013 01:58:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Question-on-shell-script-for-linux/m-p/64444#M2217</guid>
      <dc:creator>darksky21</dc:creator>
      <dc:date>2013-09-17T01:58:34Z</dc:date>
    </item>
  </channel>
</rss>

