<?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 Splunk Forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder/m-p/21350#M3163</link>
    <description>&lt;P&gt;I am new to splunk, want to forward my logs by universal forwarder to specific index by CLI. Please help me out.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2011 13:16:51 GMT</pubDate>
    <dc:creator>gaurav_a</dc:creator>
    <dc:date>2011-11-23T13:16:51Z</dc:date>
    <item>
      <title>Splunk Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder/m-p/21350#M3163</link>
      <description>&lt;P&gt;I am new to splunk, want to forward my logs by universal forwarder to specific index by CLI. Please help me out.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2011 13:16:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder/m-p/21350#M3163</guid>
      <dc:creator>gaurav_a</dc:creator>
      <dc:date>2011-11-23T13:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder/m-p/21351#M3164</link>
      <description>&lt;P&gt;Gaurav_a,&lt;BR /&gt;
There are a few ways to do this.  The most straight-forward way is to add the "index=foo" line to your stanzas in inputs.conf as described in the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Setupmultipleindexes"&gt;docs&lt;/A&gt;.  For example, if this were for a UF on Windows to collect normal WinEventLogs, and you want to forward events to an index called "windows", you could add the index line to your &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/inputsconf"&gt;inputs.conf&lt;/A&gt; to make it look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog:Security]
index=windows
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can also achieve the same results via the Splunk &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/MonitorfilesanddirectoriesusingtheCLI"&gt;CLI&lt;/A&gt; commands.&lt;/P&gt;

&lt;P&gt;There are also more &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Routeandfilterdatad"&gt;advanced&lt;/A&gt; techniques if they suite your use-case more appropriately.&lt;/P&gt;

&lt;P&gt;Best,&lt;BR /&gt;
Sean&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2011 14:06:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder/m-p/21351#M3164</guid>
      <dc:creator>sdwilkerson</dc:creator>
      <dc:date>2011-11-23T14:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder/m-p/21352#M3165</link>
      <description>&lt;P&gt;Hi there is a guide in the Splunk Documentation:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Setupforwardingandreceiving"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Setupforwardingandreceiving&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;However a simple overview, would be to configure your input stanzas (on the Universal forwarder) in $SPLUNK_HOME/etc/apps/search/localinputs.conf file, e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/log/vmail]
sourcetype = iis-2
host_regex = iis_(.*)\.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then on the indexer (receiver) configure $SPLUNK_HOME/etc/system/local/inputs.conf to listen on the forwarders unique port which you choose (e.g. 8011 in this example)...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
host = ubuntu

[splunktcp://8011]
index=universaForwarder      #(for example)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then back on the forwarder, configure your $SPLUNK_HOME/etc/system/local/outputs.conf file with the address/port numbers you want to forward to, e.g. (here I forward to another Splunk instance on my same machine, so only need to change port number)....&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = 127.0.0.1_8011
disabled = false

[tcpout:127.0.0.1_8011]
server = 127.0.0.1:8011
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Nov 2011 14:09:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder/m-p/21352#M3165</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2011-11-23T14:09:22Z</dc:date>
    </item>
  </channel>
</rss>

