<?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: Change host name at search time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Change-host-name-at-search-time/m-p/36268#M6622</link>
    <description>&lt;P&gt;Just rewrite the host value in your search before the stats command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=foo | eval host=if(host=="srv1","sys3",host) | stats count by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 15 Nov 2012 21:32:03 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-11-15T21:32:03Z</dc:date>
    <item>
      <title>Change host name at search time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-host-name-at-search-time/m-p/36267#M6621</link>
      <description>&lt;P&gt;I have a search like this&lt;/P&gt;

&lt;P&gt;sourcetype=foo | stats count by host&lt;/P&gt;

&lt;P&gt;I have 8 hosts that report to this search and all of them have standard names but one does not.&lt;/P&gt;

&lt;P&gt;I get this type of results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host     count
sys1     20
sys2     25
srv1     40
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to change the results so that srv1 shows up in the results as sys3.&lt;/P&gt;

&lt;P&gt;as always thanks for your help....:-)&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2012 21:26:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-host-name-at-search-time/m-p/36267#M6621</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2012-11-15T21:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change host name at search time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-host-name-at-search-time/m-p/36268#M6622</link>
      <description>&lt;P&gt;Just rewrite the host value in your search before the stats command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=foo | eval host=if(host=="srv1","sys3",host) | stats count by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Nov 2012 21:32:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-host-name-at-search-time/m-p/36268#M6622</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-11-15T21:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change host name at search time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-host-name-at-search-time/m-p/36269#M6623</link>
      <description>&lt;P&gt;thanks much&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2012 21:41:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-host-name-at-search-time/m-p/36269#M6623</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2012-11-15T21:41:37Z</dc:date>
    </item>
  </channel>
</rss>

