<?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 value of 2 logfiles for notification in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586275#M204234</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;OK, i understand. Grazie Mille for your help&lt;/P&gt;</description>
    <pubDate>Wed, 23 Feb 2022 16:16:35 GMT</pubDate>
    <dc:creator>simon9</dc:creator>
    <dc:date>2022-02-23T16:16:35Z</dc:date>
    <item>
      <title>How to compare value of 2 logfiles for notification?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586252#M204219</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I'm a beginner working with splunk. I have 2 Logfiles with the same Name, but from 2 different Hosts. I would like to compare both file for an expression (e.g. "server disconected") and only get the result, when the same expression is in both file in the sime time-period (last 10 min.)&amp;nbsp; so that i could use the select for a notification.&lt;/P&gt;
&lt;P&gt;I hope you understand what i mean&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks, Simon&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 17:46:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586252#M204219</guid>
      <dc:creator>simon9</dc:creator>
      <dc:date>2022-02-23T17:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compare value of 2 logfiles for notification</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586254#M204220</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243330"&gt;@simon9&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index source="yoursource" "server disconnected"
| stats dc(host) AS dc_host values(host) AS host
| where dc_host=1
| table host&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 15:18:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586254#M204220</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-23T15:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compare value of 2 logfiles for notification</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586264#M204229</link>
      <description>&lt;P&gt;Ciao&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your fast response! I tried it, but i get the data also if the entrie is just in one logfile .&amp;nbsp; I need a result only, if the expression "server disconnect" is in both logfile at the same time.&lt;/P&gt;&lt;P&gt;e.g:&lt;/P&gt;&lt;P&gt;Logfile from "host 1" has 10 entrys "server disconnected" and logfile from "host 2" has 2 entrys "server disconnected" in the same timeperiod -&amp;gt; result should be 12.&lt;/P&gt;&lt;P&gt;Logfile from "host 1" has 10 entrys "server disconnected" and Logfile from "host 2" has 0 entrys "server disconnected" in the same timeperiod&amp;nbsp; -&amp;gt; result would be 0.&lt;/P&gt;&lt;P&gt;Thanks, Simon&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 15:48:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586264#M204229</guid>
      <dc:creator>simon9</dc:creator>
      <dc:date>2022-02-23T15:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compare value of 2 logfiles for notification</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586265#M204230</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243330"&gt;@simon9&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry, I understood exactly the opposite!&lt;/P&gt;&lt;P&gt;with my search you count the number of different hosts, when the count is two, means that's present in both hosts.&lt;/P&gt;&lt;P&gt;please, try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index source="yoursource" "server disconnected"
| stats dc(host) AS dc_host values(host) AS host
| where dc_host=2&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 15:57:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586265#M204230</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-23T15:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compare value of 2 logfiles for notification</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586269#M204231</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;you don't need to apologize, my description was not the best !&lt;/P&gt;&lt;P&gt;I tried the new statement, but unfortunately i still get the result, althoug just 1 logfile (Host) has entrys.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="simon9_0-1645632278780.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18099iD01395A46A0905E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="simon9_0-1645632278780.png" alt="simon9_0-1645632278780.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your Help!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 16:05:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586269#M204231</guid>
      <dc:creator>simon9</dc:creator>
      <dc:date>2022-02-23T16:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compare value of 2 logfiles for notification</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586270#M204232</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243330"&gt;@simon9&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you don't have results: the statistics tab is empty,&amp;nbsp;you have two events from the same host,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 16:09:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586270#M204232</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-23T16:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Compare value of 2 logfiles for notification</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586275#M204234</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;OK, i understand. Grazie Mille for your help&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 16:16:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586275#M204234</guid>
      <dc:creator>simon9</dc:creator>
      <dc:date>2022-02-23T16:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Compare value of 2 logfiles for notification</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586277#M204235</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243330"&gt;@simon9&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 16:19:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-value-of-2-logfiles-for-notification/m-p/586277#M204235</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-23T16:19:00Z</dc:date>
    </item>
  </channel>
</rss>

