<?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 Forwarding a scripted input from /var/log/messages in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-a-scripted-input-from-var-log-messages/m-p/27313#M4573</link>
    <description>&lt;P&gt;I am trying to forward input from a universal forwarder to a regular Splunk installation on my desktop.&lt;/P&gt;

&lt;P&gt;The universal forwarder was installed on a linux webapp server where I configured the inputs.conf (in the /etc/system/local dir) to take a scripted input (basically a bash script with a tail command of /var/log/messages piped to grep for a keyword). That is the only input I have configured in local. I restarted, checked logs, etc. &lt;/P&gt;

&lt;P&gt;Unforunately I don't see the source, sourcetypes, or host for the linux webapp in the search homepage. I DO see the three windows hosts I installed a forwarder on, however they are pulling a log file for a client service. I feel like I am missing something somewhere. I tested the script for output, which it does. I double checked the syntax in input.conf. Im looking at the splunkd.log and I see the default directives:&lt;/P&gt;

&lt;P&gt;TailingProcessor - Parsing configuration stanza: batch://$SPLUNK_HOME/var/spool/splunk&lt;BR /&gt;
etc..&lt;/P&gt;

&lt;P&gt;I do not see my script://tail_daemon.sh directive. &lt;/P&gt;

&lt;P&gt;I'm not sure where else to look for errors. &lt;/P&gt;</description>
    <pubDate>Thu, 08 Nov 2012 05:52:40 GMT</pubDate>
    <dc:creator>aschoen</dc:creator>
    <dc:date>2012-11-08T05:52:40Z</dc:date>
    <item>
      <title>Forwarding a scripted input from /var/log/messages</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-a-scripted-input-from-var-log-messages/m-p/27313#M4573</link>
      <description>&lt;P&gt;I am trying to forward input from a universal forwarder to a regular Splunk installation on my desktop.&lt;/P&gt;

&lt;P&gt;The universal forwarder was installed on a linux webapp server where I configured the inputs.conf (in the /etc/system/local dir) to take a scripted input (basically a bash script with a tail command of /var/log/messages piped to grep for a keyword). That is the only input I have configured in local. I restarted, checked logs, etc. &lt;/P&gt;

&lt;P&gt;Unforunately I don't see the source, sourcetypes, or host for the linux webapp in the search homepage. I DO see the three windows hosts I installed a forwarder on, however they are pulling a log file for a client service. I feel like I am missing something somewhere. I tested the script for output, which it does. I double checked the syntax in input.conf. Im looking at the splunkd.log and I see the default directives:&lt;/P&gt;

&lt;P&gt;TailingProcessor - Parsing configuration stanza: batch://$SPLUNK_HOME/var/spool/splunk&lt;BR /&gt;
etc..&lt;/P&gt;

&lt;P&gt;I do not see my script://tail_daemon.sh directive. &lt;/P&gt;

&lt;P&gt;I'm not sure where else to look for errors. &lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2012 05:52:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-a-scripted-input-from-var-log-messages/m-p/27313#M4573</guid>
      <dc:creator>aschoen</dc:creator>
      <dc:date>2012-11-08T05:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding a scripted input from /var/log/messages</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-a-scripted-input-from-var-log-messages/m-p/27314#M4574</link>
      <description>&lt;P&gt;Note that the file name is inputs.conf, not input.conf. That could be your problem. But if that's not it, read on...&lt;/P&gt;

&lt;P&gt;As a test, ask the universal forwarder to monitor a regular file, instead of just running a scripted input. For example, on the desktop, create an index named &lt;CODE&gt;test&lt;/CODE&gt; and then&lt;/P&gt;

&lt;P&gt;On the linux web app server,  add the following to your inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/messages]
index=test
sourcetype=messages
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restart the universal forwarder. See if you are getting any data into the the test index on your desktop. (Just search for &lt;CODE&gt;index=test&lt;/CODE&gt;. If you get the data, then something is wrong with your script. If you don't get the data, then something is probably wrong with your forwarder configuration.&lt;/P&gt;

&lt;P&gt;Look here for help troubleshooting your forwarder: &lt;A href="http://splunk-base.splunk.com/answers/465/ive-set-up-a-forwarder-but-im-not-receving-any-events-on-the-splunk-indexer"&gt;http://splunk-base.splunk.com/answers/465/ive-set-up-a-forwarder-but-im-not-receving-any-events-on-the-splunk-indexer&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2012 07:06:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-a-scripted-input-from-var-log-messages/m-p/27314#M4574</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-11-08T07:06:43Z</dc:date>
    </item>
  </channel>
</rss>

