<?xml version="1.0" ?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
	<channel>
		<title>Splunk Base : SplunkAdministration : #3423</title>
		<link>http://www.splunk.com/support/forum:SplunkAdministration/3423</link>
		<description></description>
		<pubDate>Mon, 13 Feb 2012 17:48:51 PST</pubDate>
		<lastBuildDate>Mon, 13 Feb 2012 17:48:51 PST</lastBuildDate>
		<language>en-us</language>
		<copyright>http://creativecommons.org/licenses/by-nc-nd/2.5/</copyright>
		<item>
			<title>hostname extraction for different sourcetype</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/3423/11229</link>
			<description>&lt;p&gt;You can override the extracts that are run, e.g. in this case if you create an entry in your local props.conf file with:&lt;/p&gt;

&lt;p&gt;[syslog]&lt;br /&gt;
TRANSFORMS = my-new-syslog-extraction&lt;/p&gt;

&lt;p&gt;The &amp;quot;TRANSFORMS&amp;quot; value will override the default &amp;quot;TRANSFORMS&amp;quot; value. You can then make a new transform &amp;quot;my-new-syslog-extraction&amp;quot; in your local transforms.conf (perhaps base it on the original &amp;quot;syslog-host&amp;quot; if you like) and it will run that instead.&lt;/p&gt;

</description>
			<pubDate>Fri, 23 Oct 2009 08:07:44 PDT</pubDate>
			<author>gkanapathy</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/3423/11229</guid>
		</item>
		<item>
			<title>hostname extraction for different sourcetype</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/3423/11224</link>
			<description>&lt;p&gt;thanks this works fine.&lt;br /&gt;
having your attention i would like to address another host extraction problem.&lt;br /&gt;
my hosts are extracted with the IPaddress and two other sets of digits (might be interface and port-&amp;gt; eg,. 213.46.173.237&lt;strong&gt;.227.111&lt;/strong&gt;) instead having only the IP.&lt;/p&gt;

&lt;p&gt;Where can i modify this extraction? I do not want to extract another field from the host field, as i think this would take additional performance.&lt;/p&gt;

</description>
			<pubDate>Fri, 23 Oct 2009 00:17:36 PDT</pubDate>
			<author>ccan</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/3423/11224</guid>
		</item>
		<item>
			<title>hostname extraction for different sourcetype</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/3423/11116</link>
			<description>&lt;p&gt;If you look in $SPLUNK_HOME/etc/system/&lt;strong&gt;default&lt;/strong&gt;/props.conf, you will see that we do a TRANSFORM for the sourcetype syslog to pull out the host field:&lt;/p&gt;

&lt;p&gt;[syslog]&lt;br /&gt;
pulldown_type = true &lt;br /&gt;
maxDist = 3&lt;br /&gt;
TIME_FORMAT = %b %d %H:%M:%S&lt;br /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 32&lt;br /&gt;
&lt;strong&gt;TRANSFORMS = syslog-host&lt;/strong&gt;&lt;br /&gt;
REPORT-syslog = syslog-extractions&lt;br /&gt;
SHOULD_LINEMERGE = False&lt;/p&gt;

&lt;p&gt;If you add this TRANSFORM to the sourcetype that you want to perform syslog host extraction on in $SPLUNK_HOME/etc/system/&lt;strong&gt;local&lt;/strong&gt;/props.conf, this should work for you.  For example, if the sourcetype is &amp;quot;foobar&amp;quot;:&lt;/p&gt;

&lt;p&gt;[foobar]&lt;br /&gt;
TRANSFORMS = syslog-host&lt;/p&gt;

</description>
			<pubDate>Thu, 15 Oct 2009 07:57:40 PDT</pubDate>
			<author>araitz</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/3423/11116</guid>
		</item>
		<item>
			<title>hostname extraction for different sourcetype</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/3423/11109</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;i have installed a light forwarder on one of my syslog server (B), forwarding to the main server where indexing is done. On the forwarder B i have set a different source type than &amp;quot;syslog&amp;quot; to create easier filters in the roles assigned to user.&lt;br /&gt;
My problem is that on the main server the host filed is allways set to the hostname of the Forwarder B instead extracting from the message,&lt;/p&gt;

&lt;p&gt;If i set the sourcetype on the forwarder to &amp;quot;syslog&amp;quot; then the host field is extracted correctly.&lt;/p&gt;

&lt;p&gt;Do i have to do host field extraction for this sourcetype as well? If yes how and where (props.conf, transform.conf)?&lt;/p&gt;

&lt;p&gt;thanks&lt;/p&gt;

</description>
			<pubDate>Thu, 15 Oct 2009 02:12:05 PDT</pubDate>
			<author>ccan</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/3423/11109</guid>
		</item>
	</channel>
</rss>

