<?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: Source Host instead of Relay Host in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76066#M19215</link>
    <description>&lt;P&gt;You can try to change the "keep_hostname" option in global section of the relay syslog-ng.conf.  If you are using multiple relays chain, it must be configured on all relay, if not it keeps the last relay IP address in the log server.&lt;/P&gt;

&lt;P&gt;Pascal&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2012 13:22:51 GMT</pubDate>
    <dc:creator>scarface_01</dc:creator>
    <dc:date>2012-09-13T13:22:51Z</dc:date>
    <item>
      <title>Source Host instead of Relay Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76058#M19207</link>
      <description>&lt;P&gt;Due to network restrictions, I needed to use a server as a relay.  This relay server in turn forwards the logs to my Splunk server.  The problem is that the Splunk server indexes relay server as host.  Hence, even if there were actually a few servers that is sending its logs to the relay server, the spunk server shows only the relay server in the Hosts box in the Splunk Summary.  Is there a way for the Splunk server to index the source hosts instead of the relay server?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 20:36:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76058#M19207</guid>
      <dc:creator>jyanga</dc:creator>
      <dc:date>2012-06-14T20:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Source Host instead of Relay Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76059#M19208</link>
      <description>&lt;P&gt;How is the relaying done, via Splunk forwarding, syslog, ...?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 20:43:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76059#M19208</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-14T20:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Source Host instead of Relay Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76060#M19209</link>
      <description>&lt;P&gt;The relaying is done via Syslog-ng.  The logs are preserved when Syslog-ng receives the relay and then have Splunk reads these logs.  However, I am attempting to save disk space by not having Syslog-ng in the middle and letting Splunk receive the logs directly from the relay server.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 21:03:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76060#M19209</guid>
      <dc:creator>jyanga</dc:creator>
      <dc:date>2012-06-14T21:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Source Host instead of Relay Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76061#M19210</link>
      <description>&lt;P&gt;There are a couple of things that can be done in this situation. Depending on how your relay server is setup, some of these instructions may not apply. &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;On the Splunk indexer, set the sourcetype to 'syslog' for the incoming data. Splunk should then try to extract the host information on a per-event basis, and index that.&lt;/LI&gt;
&lt;LI&gt;Install a heavy splunk forwarder on the relay host, along with the syslog-ng. Have syslog-ng write the incoming data to files on disk, where the forwarder can pick them up. In this case the forwarder will do the parsing, and extract the host info.&lt;/LI&gt;
&lt;LI&gt;Same as for 2 above, but have the syslog daemon write separate files for each host (like &lt;CODE&gt;/var/log/blaha/&amp;lt;hostname&amp;gt;/blaha.log&lt;/CODE&gt; . Then have the forwarder (can be a Universal Forwarder) monitor the &lt;CODE&gt;/var/log/blaha/&lt;/CODE&gt; directory structure, and extract the hostname through the &lt;CODE&gt;host_segment=4&lt;/CODE&gt; parameter for input stanzas - see the Admin manual for inputs.conf syntax. &lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 21:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76061#M19210</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-06-14T21:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Source Host instead of Relay Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76062#M19211</link>
      <description>&lt;P&gt;Among the recommendations, I opted to try #1.  Here are the steps I have performed.&lt;/P&gt;

&lt;P&gt;01)  Deleted previously created Data inputs&lt;BR /&gt;
02)  Deleted previously generated indexed logs&lt;BR /&gt;
03)  Added a new Data input with the follow config:&lt;BR /&gt;
UDP port:  514&lt;BR /&gt;
Set sourcetype:  From list&lt;BR /&gt;
Select source type from list:  syslog&lt;BR /&gt;
04)  generated logs&lt;/P&gt;

&lt;P&gt;Hosts box in the Summary page still only has the Syslog-ng relay server IP address.&lt;/P&gt;

&lt;P&gt;Did I miss a configuration?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2012 14:36:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76062#M19211</guid>
      <dc:creator>jyanga</dc:creator>
      <dc:date>2012-06-15T14:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Source Host instead of Relay Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76063#M19212</link>
      <description>&lt;P&gt;FYI, I just ran a tcpdump on the Splunk server while generating the logs from the source.  The logs it receives were pristine.  Hence, the Splunk server is the one that is adding the relay server in the host field.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2012 14:52:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76063#M19212</guid>
      <dc:creator>jyanga</dc:creator>
      <dc:date>2012-06-15T14:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Source Host instead of Relay Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76064#M19213</link>
      <description>&lt;P&gt;do your events look like:&lt;/P&gt;

&lt;P&gt;timestamp relay-host timestamp original-host message&lt;BR /&gt;
?&lt;/P&gt;

&lt;P&gt;In that case, I believe you'll have to configure your syslog server to NOT write its own timestamps/hostname before relaying. Or you can have a look at this wiki post for stripping them at the indexer:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://wiki.splunk.com/Community:StripSyslog"&gt;http://wiki.splunk.com/Community:StripSyslog&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2012 20:00:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76064#M19213</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-06-17T20:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Source Host instead of Relay Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76065#M19214</link>
      <description>&lt;P&gt;Thank you for the wiki URL.  It indeed deleted the time stamp and host IP of the relay server from the logs.  However, when I go to the Summary page, the Hosts box still shows the relay server IP address instead of the source server.&lt;/P&gt;

&lt;P&gt;FYI, per my last log, tcpdump shows that the relay server is not adding time stamp and itself in the log.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2012 15:55:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76065#M19214</guid>
      <dc:creator>jyanga</dc:creator>
      <dc:date>2012-06-19T15:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Source Host instead of Relay Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76066#M19215</link>
      <description>&lt;P&gt;You can try to change the "keep_hostname" option in global section of the relay syslog-ng.conf.  If you are using multiple relays chain, it must be configured on all relay, if not it keeps the last relay IP address in the log server.&lt;/P&gt;

&lt;P&gt;Pascal&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 13:22:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Source-Host-instead-of-Relay-Host/m-p/76066#M19215</guid>
      <dc:creator>scarface_01</dc:creator>
      <dc:date>2012-09-13T13:22:51Z</dc:date>
    </item>
  </channel>
</rss>

