<?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: Compare logs between different host and match the value. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Compare-logs-between-different-host-and-match-the-value/m-p/562297#M195563</link>
    <description>My bad i should have explained in detail. hostA and hostB are like datacenters and 1,2,3.... are hosts. and wanted to check side by side to those datacenters and only get the token value that matches. here is the sample log: 2021-08-05 19:01:59.677 INFO RestTemplate: {"logType":"STANDARD","message":"==========================request log================================================", "Method":"POST","Headers":"{Accept=[application/json], Content-Type=[application/json], Authorization=[Bearer eyJhQM8DMG8bEtCIsiZ0GjyYWxwt3ny1Q], Token=[basd23123], "Request body": {"accountNumber":824534875389475}}} hostA = 1 source = a.log sourcetype = a_log 2021-08-05 19:01:59.687 INFO RestTemplate: {"logType":"STANDARD","message":"==========================request log================================================", "Method":"POST","Headers":"{Accept=[application/json], Content-Type=[application/json], Authorization=[Bearer eyJhQM8DMG8bEtCIsiZ0GjyYWxwt3ny1Q], Token=[basd23123], "Request body": {"accountNumber":824534875389475}}} hostb = 6 source = a.log sourcetype = a_log if the Token matches on both hostA and hostB then only the matched are needed.</description>
    <pubDate>Thu, 05 Aug 2021 19:10:00 GMT</pubDate>
    <dc:creator>DougiieDee</dc:creator>
    <dc:date>2021-08-05T19:10:00Z</dc:date>
    <item>
      <title>Compare logs between different host and match the value.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-logs-between-different-host-and-match-the-value/m-p/562284#M195561</link>
      <description>I have two different hosts . hostA-1, hostA-2, hostA-3, hostA-4, hostA-5 . hostB-5, hostB-6, hostB-7, hostB-8. I want to compare the specific value from the logs that are matched like Token which are unique but wanted to find if the value are matched between hostA and hostB and form a table based on that which will show hosts name A and B and below will be the matching token</description>
      <pubDate>Thu, 05 Aug 2021 17:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-logs-between-different-host-and-match-the-value/m-p/562284#M195561</guid>
      <dc:creator>DougiieDee</dc:creator>
      <dc:date>2021-08-05T17:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compare logs between different host and match the value.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-logs-between-different-host-and-match-the-value/m-p/562287#M195562</link>
      <description>&lt;P&gt;You said two hosts but then gave 8 values, are you just interested in the first part of the name?&lt;/P&gt;&lt;P&gt;Can you share some sample events and show which fields are already extracted and which is these would be considered as Tokens?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 18:12:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-logs-between-different-host-and-match-the-value/m-p/562287#M195562</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-05T18:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Compare logs between different host and match the value.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-logs-between-different-host-and-match-the-value/m-p/562297#M195563</link>
      <description>My bad i should have explained in detail. hostA and hostB are like datacenters and 1,2,3.... are hosts. and wanted to check side by side to those datacenters and only get the token value that matches. here is the sample log: 2021-08-05 19:01:59.677 INFO RestTemplate: {"logType":"STANDARD","message":"==========================request log================================================", "Method":"POST","Headers":"{Accept=[application/json], Content-Type=[application/json], Authorization=[Bearer eyJhQM8DMG8bEtCIsiZ0GjyYWxwt3ny1Q], Token=[basd23123], "Request body": {"accountNumber":824534875389475}}} hostA = 1 source = a.log sourcetype = a_log 2021-08-05 19:01:59.687 INFO RestTemplate: {"logType":"STANDARD","message":"==========================request log================================================", "Method":"POST","Headers":"{Accept=[application/json], Content-Type=[application/json], Authorization=[Bearer eyJhQM8DMG8bEtCIsiZ0GjyYWxwt3ny1Q], Token=[basd23123], "Request body": {"accountNumber":824534875389475}}} hostb = 6 source = a.log sourcetype = a_log if the Token matches on both hostA and hostB then only the matched are needed.</description>
      <pubDate>Thu, 05 Aug 2021 19:10:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-logs-between-different-host-and-match-the-value/m-p/562297#M195563</guid>
      <dc:creator>DougiieDee</dc:creator>
      <dc:date>2021-08-05T19:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Compare logs between different host and match the value.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-logs-between-different-host-and-match-the-value/m-p/562302#M195564</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "Token=\[(?&amp;lt;token&amp;gt;[^\]]+)\].+(?&amp;lt;host&amp;gt;host\w+)\s"
| eventstats values(host) as hosts by token
| where mvcount(hosts) = 2&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Aug 2021 20:19:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-logs-between-different-host-and-match-the-value/m-p/562302#M195564</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-05T20:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Compare logs between different host and match the value.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-logs-between-different-host-and-match-the-value/m-p/562320#M195566</link>
      <description>it didnt show any events</description>
      <pubDate>Thu, 05 Aug 2021 21:46:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-logs-between-different-host-and-match-the-value/m-p/562320#M195566</guid>
      <dc:creator>DougiieDee</dc:creator>
      <dc:date>2021-08-05T21:46:10Z</dc:date>
    </item>
  </channel>
</rss>

