<?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 Host and ComputerName  Mismatch Search in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Host-and-ComputerName-Mismatch-Search/m-p/102916#M21610</link>
    <description>&lt;P&gt;Can I get some help with a search or report?&lt;/P&gt;

&lt;P&gt;We have an issue where some hosts were renamed or cloned and Splunk was not re-installed so the Host does not match the ComputerName.&lt;/P&gt;

&lt;P&gt;I know that I can simply update the $SPLUNK_HOME/etc/system/local files to fix the situation but I need to be able to identify these machines out of 500+ hosts and monitor so that it doesn't happen again.&lt;/P&gt;

&lt;P&gt;Can someone please post a search that shows all hosts where the "Host" field does NOT match the "ComputerName" field?&lt;/P&gt;

&lt;P&gt;I have tried and tried and can't seem to track down the correct search language. It seems simple enough but I'm stuck. Maybe I'm over-thinking it.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jul 2013 17:50:02 GMT</pubDate>
    <dc:creator>loatswil</dc:creator>
    <dc:date>2013-07-22T17:50:02Z</dc:date>
    <item>
      <title>Host and ComputerName  Mismatch Search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Host-and-ComputerName-Mismatch-Search/m-p/102916#M21610</link>
      <description>&lt;P&gt;Can I get some help with a search or report?&lt;/P&gt;

&lt;P&gt;We have an issue where some hosts were renamed or cloned and Splunk was not re-installed so the Host does not match the ComputerName.&lt;/P&gt;

&lt;P&gt;I know that I can simply update the $SPLUNK_HOME/etc/system/local files to fix the situation but I need to be able to identify these machines out of 500+ hosts and monitor so that it doesn't happen again.&lt;/P&gt;

&lt;P&gt;Can someone please post a search that shows all hosts where the "Host" field does NOT match the "ComputerName" field?&lt;/P&gt;

&lt;P&gt;I have tried and tried and can't seem to track down the correct search language. It seems simple enough but I'm stuck. Maybe I'm over-thinking it.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2013 17:50:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Host-and-ComputerName-Mismatch-Search/m-p/102916#M21610</guid>
      <dc:creator>loatswil</dc:creator>
      <dc:date>2013-07-22T17:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Host and ComputerName  Mismatch Search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Host-and-ComputerName-Mismatch-Search/m-p/102917#M21611</link>
      <description>&lt;P&gt;For Windows: if (1) you are indexing the Windows System Event log and (2) the event log contains a field named ComputerName, you could do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="WinEventLog:System" 
| where upper(host)!=upper(ComputerName)
| dedup host ComputerName
| table host ComputerName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For Linux, you need to find a log file that contains the host name, and run a similar search.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2013 18:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Host-and-ComputerName-Mismatch-Search/m-p/102917#M21611</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-07-22T18:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Host and ComputerName  Mismatch Search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Host-and-ComputerName-Mismatch-Search/m-p/102918#M21612</link>
      <description>&lt;P&gt;Hi I have this problem in my enviorment but the search didn't work.&lt;/P&gt;

&lt;P&gt;The host=myhost the Computername=myhost.network.com&lt;/P&gt;

&lt;P&gt;this shows in the mismatch above.&lt;/P&gt;

&lt;P&gt;I tried this:&lt;BR /&gt;
&lt;CODE&gt;sourcetype="WinEventLog:System” &lt;BR /&gt;
| rex "ComputerName\=(?&amp;lt;computerName&amp;gt;.*)\.network"&lt;BR /&gt;
| where upper(host)!=upper(computerName)&lt;BR /&gt;
| dedup host computerName&lt;BR /&gt;
| table host computerName&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But it misses the ones where Computer name dosn't not have the FQDN.&lt;/P&gt;

&lt;P&gt;Any sugestions on how this would work for both conditions where the ComputerName is FQDN OR ComputerName is netbios?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 18:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Host-and-ComputerName-Mismatch-Search/m-p/102918#M21612</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2013-09-12T18:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Host and ComputerName  Mismatch Search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Host-and-ComputerName-Mismatch-Search/m-p/102919#M21613</link>
      <description>&lt;P&gt;I even tried this but the eval command didn't work&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype="WinEventLog:System" &lt;BR /&gt;
| EVAL computerName=if(ComputerName="*.network.*",regex=ComputerName\=(?)\.network,ComputerName)&lt;BR /&gt;
| where upper(host)!=upper(computerName)&lt;BR /&gt;
| dedup host computerName&lt;BR /&gt;
| table host computerName index&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 18:52:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Host-and-ComputerName-Mismatch-Search/m-p/102919#M21613</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2013-09-12T18:52:05Z</dc:date>
    </item>
  </channel>
</rss>

