<?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 value for windows in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/host-value-for-windows/m-p/57212#M11171</link>
    <description>&lt;P&gt;The silence has been deafening...&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2011 02:32:05 GMT</pubDate>
    <dc:creator>cmeo</dc:creator>
    <dc:date>2011-09-02T02:32:05Z</dc:date>
    <item>
      <title>host value for windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-value-for-windows/m-p/57210#M11169</link>
      <description>&lt;P&gt;I've seen a few postings on this topic, but there doesn't seem to be final solution. I'm getting up to four different styles of host name from my windows boxes:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;COMPUTER NAME (all upper case, not fqdn)&lt;/LI&gt;
&lt;LI&gt;computer name (all lower case, not fqdn)&lt;/LI&gt;
&lt;LI&gt;computer.domain.com.au (the value I actually want, canonical DNS fqdn)&lt;/LI&gt;
&lt;LI&gt;computer.windows-domain.com.au (derived from AD info if present)&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;This is annoying, and I'd like to know if there is one spot where I can set option 3 such that it will override all the others. So far I haven't found it. Furthermore it would great if splunk installation prompted for this, so you don't have to find and edit the files.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2011 01:00:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-value-for-windows/m-p/57210#M11169</guid>
      <dc:creator>cmeo</dc:creator>
      <dc:date>2011-08-12T01:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: host value for windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-value-for-windows/m-p/57211#M11170</link>
      <description>&lt;P&gt;I am also finding this problem... Does anybody have any solution??&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2011 14:51:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-value-for-windows/m-p/57211#M11170</guid>
      <dc:creator>jdunlea_splunk</dc:creator>
      <dc:date>2011-08-26T14:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: host value for windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-value-for-windows/m-p/57212#M11171</link>
      <description>&lt;P&gt;The silence has been deafening...&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2011 02:32:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-value-for-windows/m-p/57212#M11171</guid>
      <dc:creator>cmeo</dc:creator>
      <dc:date>2011-09-02T02:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: host value for windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-value-for-windows/m-p/57213#M11172</link>
      <description>&lt;P&gt;There is no &lt;STRONG&gt;single&lt;/STRONG&gt; place that this can be set.  If you want to set a consistent host format, the most direct way is to set it explicitly for each input.  This can be a painful solution if you are using the deployment server and/or have many Windows forwarders.&lt;/P&gt;

&lt;P&gt;You will also need to override &lt;CODE&gt;TRANSFORMS = syslog-host&lt;/CODE&gt;  Splunk automatically applies the syslog-host transformation to some of the sourcetypes that are syslog-based.  To override it, you will need to add&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS=
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to the appropriate sourcetype stanza of props.conf on all of the indexers.  If you use "heavy" forwarders, you will also need to set it there as well.&lt;/P&gt;

&lt;P&gt;You could submit this to Splunk Support as an enhancement request.  (The more requests, the more likely that someone will add this as a feature in a future release...)&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2011 16:44:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-value-for-windows/m-p/57213#M11172</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2011-09-03T16:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: host value for windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-value-for-windows/m-p/57214#M11173</link>
      <description>&lt;P&gt;Figured out how to do it with yet another ugly hack. You can get the host name part of the windows computer name, however it appears, with this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval x=split(host, ".") | eval w_host=mvindex(x,0)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This normalises your hostname if it &lt;EM&gt;does&lt;/EM&gt; have the domain part, but still works if it doesn't.&lt;/P&gt;

&lt;P&gt;You can then use this in a form to match your windows host however it appears:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=wmi:cputime host=*$w_host$*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which normalises data sources which do &lt;EM&gt;not&lt;/EM&gt; have the domain part, but still works if they do.&lt;/P&gt;

&lt;P&gt;Nasty, should be unnecessary, but it works.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2012 05:00:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-value-for-windows/m-p/57214#M11173</guid>
      <dc:creator>cmeo</dc:creator>
      <dc:date>2012-05-16T05:00:55Z</dc:date>
    </item>
  </channel>
</rss>

