<?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: Host does not get properly extracted for linux_secure in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Host-does-not-get-properly-extracted-for-linux-secure/m-p/69402#M14070</link>
    <description>&lt;P&gt;Alexander, can you paste a sample of our syslog output here?&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2011 15:09:17 GMT</pubDate>
    <dc:creator>dmaislin_splunk</dc:creator>
    <dc:date>2011-09-02T15:09:17Z</dc:date>
    <item>
      <title>Host does not get properly extracted for linux_secure</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Host-does-not-get-properly-extracted-for-linux-secure/m-p/69401#M14069</link>
      <description>&lt;P&gt;Host does not get properly extracted for linux_secure (I get the syslog server hostname instead)&lt;/P&gt;

&lt;P&gt;I have tried many things:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;props.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[linux_secure]&lt;BR /&gt;
TRANSFORM = syslog-host&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;props.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[linux_secure]&lt;BR /&gt;
TRANSFORM-host = syslog-host&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;props.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[linux_secure]&lt;BR /&gt;
TRANSFORMS-zz_fix_host = syslog_add_fqdn&lt;BR /&gt;
&lt;/CODE&gt;&lt;BR /&gt;
transforms.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[syslog_add_fqdn]&lt;BR /&gt;
DEST_KEY = MetaData:Host&lt;BR /&gt;
SOURCE_KEY = MetaData:Host&lt;BR /&gt;
REGEX    = host::.&lt;BR /&gt;
FORMAT   = host::testrename&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;None of these options work (including after restart).&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:51:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Host-does-not-get-properly-extracted-for-linux-secure/m-p/69401#M14069</guid>
      <dc:creator>alexander_lucas</dc:creator>
      <dc:date>2020-09-28T09:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Host does not get properly extracted for linux_secure</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Host-does-not-get-properly-extracted-for-linux-secure/m-p/69402#M14070</link>
      <description>&lt;P&gt;Alexander, can you paste a sample of our syslog output here?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2011 15:09:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Host-does-not-get-properly-extracted-for-linux-secure/m-p/69402#M14070</guid>
      <dc:creator>dmaislin_splunk</dc:creator>
      <dc:date>2011-09-02T15:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Host does not get properly extracted for linux_secure</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Host-does-not-get-properly-extracted-for-linux-secure/m-p/69403#M14071</link>
      <description>&lt;P&gt;If you issue the following command, what do you get for the [linux_secure] stanza?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/bin/splunk btool --debug props list | more
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, I wouldn't set the host name using a transform, when you can easily set it in props.conf, or even inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=testrename
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should work -- unless the system is supplying&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS = syslog-host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which it does for some known sourcetypes.  The first command will help you figure that out. &lt;/P&gt;

&lt;P&gt;Finally, a &lt;STRONG&gt;very&lt;/STRONG&gt; important question: where is your props.conf? What is the location of the file?  Configuration file precedence is very important in Splunk; if you understand it, great!  But if not, take a look at &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.2.3/Admin/Wheretofindtheconfigurationfiles"&gt;Configuration File Precedence&lt;/A&gt; in the Admin manual.  &lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2011 16:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Host-does-not-get-properly-extracted-for-linux-secure/m-p/69403#M14071</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2011-09-03T16:23:30Z</dc:date>
    </item>
  </channel>
</rss>

