<?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 to setup splunk to analyse logs produced on a remote server? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-setup-splunk-to-analyse-logs-produced-on-a-remote-server/m-p/30601#M5358</link>
    <description>&lt;P&gt;You don't want to have your application connecting to port 9997 on the Windows machine. Instead you need to have the Splunk Forwarder on the Linux machine configured to forward log files from the Linux machine to the Windows machine.&lt;/P&gt;

&lt;P&gt;To do this you'll need the following:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Configure your log4j.xml to append to a local file (I don't know how to do this bit).&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Configure the Linux server to pick up the file by putting the following in inputs.conf&lt;/P&gt;

&lt;P&gt;[monitor:///&lt;EM&gt;path to log file&lt;/EM&gt;]
followTail = 0
disabled = false
sourcetype = log4j&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;You can wildcard any date reference in the log file name if the file changes name dependent on the day.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;Configure the Linux server to forward to the Windows server by putting similar to below in outputs.conf.&lt;/P&gt;

&lt;P&gt;[tcpout]
defaultGroup=MyIndexers&lt;/P&gt;

&lt;P&gt;[tcpout:MyIndexers]
server=&lt;EM&gt;WindowsServerIP&lt;/EM&gt;:9997&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;If you restart Splunk on the Linux system this should forward the contents of the file monitored to your Splunk indexer. You can repeat the monitor stanza for other log files.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Apr 2012 15:07:29 GMT</pubDate>
    <dc:creator>MickSheppard</dc:creator>
    <dc:date>2012-04-19T15:07:29Z</dc:date>
    <item>
      <title>how to setup splunk to analyse logs produced on a remote server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-setup-splunk-to-analyse-logs-produced-on-a-remote-server/m-p/30600#M5357</link>
      <description>&lt;P&gt;Hi! I am a newbie to Splunk. I have an application on a linux server that produces logs in log4j format. I want to receive these logs on a windows machine and analyse them (count errors and successes). &lt;BR /&gt;
I have already installed Splunk Web on Windows machine and configured forwarding and receiving to receive data on port 9997 (as explained in &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Enableareceiver"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Enableareceiver&lt;/A&gt;). I have also installed splunk forwarder on the linux server and configured inputs.conf as follows:&lt;BR /&gt;
[tcp://9997]&lt;BR /&gt;
connection_host=dns&lt;BR /&gt;
sourcetype=log4j&lt;/P&gt;

&lt;P&gt;and my log4j.xml, as follows:&lt;/P&gt;

&lt;P&gt;&lt;APPENDER class="org.apache.log4j.net.SocketAppender" name="SPLUNK_APPENDER"&gt;&lt;BR /&gt;
                &lt;OBJECT&gt;&lt;PARAM name="RemoteHost" value="&amp;lt;IP of splunk receiver&amp;gt;&amp;quot; /&amp;gt;&amp;lt;br&amp;gt;
                &amp;lt;param name=" port="" /&gt;&lt;BR /&gt;
                &lt;PARAM name="LocationInfo" value="false" /&gt;&lt;BR /&gt;
                &lt;PARAM name="ReconnectionDelay" value="60000" /&gt;&lt;BR /&gt;
                &lt;PARAM name="Threshold" value="INFO" /&gt;&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/APPENDER&gt;&lt;/P&gt;

&lt;P&gt;But it does not work. Do I miss something? Can this be implemented?&lt;/P&gt;

&lt;P&gt;Alternatively, how can I receive from the windows machine the log files generated by my log4j app and are stored in a specific path of the linux machine?&lt;/P&gt;

&lt;P&gt;Thank you in advance,&lt;/P&gt;

&lt;P&gt;-Mari&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 14:14:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-setup-splunk-to-analyse-logs-produced-on-a-remote-server/m-p/30600#M5357</guid>
      <dc:creator>mmikrouli</dc:creator>
      <dc:date>2012-04-19T14:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to setup splunk to analyse logs produced on a remote server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-setup-splunk-to-analyse-logs-produced-on-a-remote-server/m-p/30601#M5358</link>
      <description>&lt;P&gt;You don't want to have your application connecting to port 9997 on the Windows machine. Instead you need to have the Splunk Forwarder on the Linux machine configured to forward log files from the Linux machine to the Windows machine.&lt;/P&gt;

&lt;P&gt;To do this you'll need the following:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Configure your log4j.xml to append to a local file (I don't know how to do this bit).&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Configure the Linux server to pick up the file by putting the following in inputs.conf&lt;/P&gt;

&lt;P&gt;[monitor:///&lt;EM&gt;path to log file&lt;/EM&gt;]
followTail = 0
disabled = false
sourcetype = log4j&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;You can wildcard any date reference in the log file name if the file changes name dependent on the day.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;Configure the Linux server to forward to the Windows server by putting similar to below in outputs.conf.&lt;/P&gt;

&lt;P&gt;[tcpout]
defaultGroup=MyIndexers&lt;/P&gt;

&lt;P&gt;[tcpout:MyIndexers]
server=&lt;EM&gt;WindowsServerIP&lt;/EM&gt;:9997&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;If you restart Splunk on the Linux system this should forward the contents of the file monitored to your Splunk indexer. You can repeat the monitor stanza for other log files.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 15:07:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-setup-splunk-to-analyse-logs-produced-on-a-remote-server/m-p/30601#M5358</guid>
      <dc:creator>MickSheppard</dc:creator>
      <dc:date>2012-04-19T15:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to setup splunk to analyse logs produced on a remote server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-setup-splunk-to-analyse-logs-produced-on-a-remote-server/m-p/30602#M5359</link>
      <description>&lt;P&gt;That was great help! Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 13:40:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-setup-splunk-to-analyse-logs-produced-on-a-remote-server/m-p/30602#M5359</guid>
      <dc:creator>mmikrouli</dc:creator>
      <dc:date>2012-04-20T13:40:14Z</dc:date>
    </item>
  </channel>
</rss>

