<?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: How would I merge the events from two log files so that it appears as if coming from a single host? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-would-I-merge-the-events-from-two-log-files-so-that-it/m-p/252569#M189341</link>
    <description>&lt;P&gt;You could do it in the search with an eval to merge the two hosts' data into one:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=rsa_auth AUTHN_LOGIN_EVENT | eval host=if(host="serverA.foo.com" OR host="serverB.foo.com", "single_server.foo.com", host) | timechart span=1d count by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 18 Mar 2016 19:31:22 GMT</pubDate>
    <dc:creator>jhupka</dc:creator>
    <dc:date>2016-03-18T19:31:22Z</dc:date>
    <item>
      <title>How would I merge the events from two log files so that it appears as if coming from a single host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-would-I-merge-the-events-from-two-log-files-so-that-it/m-p/252568#M189340</link>
      <description>&lt;P&gt;The logs are created by the same application and have the same fields.  &lt;/P&gt;

&lt;P&gt;What I am after is displaying the count of events from two hosts (of 10) as a single host in a timechart.  This search breaks out authentications across 10 hosts, I want it to look like there are 9 hosts.&lt;/P&gt;

&lt;P&gt;sourcetype=rsa_auth   AUTHN_LOGIN_EVENT| timechart  span=1d count by host&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:08:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-would-I-merge-the-events-from-two-log-files-so-that-it/m-p/252568#M189340</guid>
      <dc:creator>cal_dunigan</dc:creator>
      <dc:date>2020-09-29T09:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: How would I merge the events from two log files so that it appears as if coming from a single host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-would-I-merge-the-events-from-two-log-files-so-that-it/m-p/252569#M189341</link>
      <description>&lt;P&gt;You could do it in the search with an eval to merge the two hosts' data into one:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=rsa_auth AUTHN_LOGIN_EVENT | eval host=if(host="serverA.foo.com" OR host="serverB.foo.com", "single_server.foo.com", host) | timechart span=1d count by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Mar 2016 19:31:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-would-I-merge-the-events-from-two-log-files-so-that-it/m-p/252569#M189341</guid>
      <dc:creator>jhupka</dc:creator>
      <dc:date>2016-03-18T19:31:22Z</dc:date>
    </item>
  </channel>
</rss>

