<?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: correlated search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-define-multiple-search-or-subsearch-to-merge-all-relevant/m-p/598262#M208319</link>
    <description>&lt;P&gt;Yes, thats the problem... some lines has the number extracted as alert_num, some has not. thats why could not find all of them in whole search.&lt;/P&gt;&lt;P&gt;the alert_num string is the same, so if it is possible have to two different extract regex for that field, or take that number as a simple string to use it in the outer search.&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2022 08:44:18 GMT</pubDate>
    <dc:creator>gszabo</dc:creator>
    <dc:date>2022-05-18T08:44:18Z</dc:date>
    <item>
      <title>How to define multiple search or subsearch to merge all relevant information about alerts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-define-multiple-search-or-subsearch-to-merge-all-relevant/m-p/598245#M208311</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Help me please. I'd like to define multiple search or subsearch to merge all relevant information about alerts.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Interesting fields in search are &amp;nbsp;the hosts - as managed_host field and an&amp;nbsp;uniqe alert number.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I do not need alert about all the hosts, so i sort the relevant ones:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="andale mono,times"&gt;index=main ( managed_host="host_A" OR managed_host="host_B" OR managed_host="host_C" ) | dedup alert_num |&amp;nbsp; eval alert=alert_num&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thats simple, will show the relevant alert numbers. After that i need to simple search the selected alerts to get ALL the logs ( some of them doesn't contain managed_host filed, so will not appear at first search.)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="andale mono,times"&gt;Index=main alert_num=$alert$&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times"&gt;How could be merged this two search in one to generate an alert that will contain all relevant information?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Gabor&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 16:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-define-multiple-search-or-subsearch-to-merge-all-relevant/m-p/598245#M208311</guid>
      <dc:creator>gszabo</dc:creator>
      <dc:date>2022-05-18T16:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: correlated search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-define-multiple-search-or-subsearch-to-merge-all-relevant/m-p/598250#M208312</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main [search index=main ( managed_host="host_A" OR managed_host="host_B" OR managed_host="host_C" ) | dedup alert_num | fields alert_num | format]&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 18 May 2022 07:26:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-define-multiple-search-or-subsearch-to-merge-all-relevant/m-p/598250#M208312</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-18T07:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: correlated search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-define-multiple-search-or-subsearch-to-merge-all-relevant/m-p/598252#M208314</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Almost good. the subseach returns the relevant alert numbers, thats okay.&amp;nbsp;&lt;/P&gt;&lt;P&gt;alert_num search&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;( ( alert_num="484316" ) OR ( alert_num="484263" ) OR ( alert_num="484243" ) )&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the whole query do not shows all the relevant logs with the selected alert numbers, just ones what contains the managed_host field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 08:01:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-define-multiple-search-or-subsearch-to-merge-all-relevant/m-p/598252#M208314</guid>
      <dc:creator>gszabo</dc:creator>
      <dc:date>2022-05-18T08:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: correlated search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-define-multiple-search-or-subsearch-to-merge-all-relevant/m-p/598256#M208316</link>
      <description>&lt;P&gt;The subsearch is just returning alert numbers not managed_host values so the outer search should be searching the whole index for events with these alert_num values.&lt;/P&gt;&lt;P&gt;Has the alert_num field been extracted on the non-managed_hosts?&lt;/P&gt;&lt;P&gt;Can you pick a returned alert number and try just searching you main index with that value to see what you get?&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 08:18:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-define-multiple-search-or-subsearch-to-merge-all-relevant/m-p/598256#M208316</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-18T08:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: correlated search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-define-multiple-search-or-subsearch-to-merge-all-relevant/m-p/598262#M208319</link>
      <description>&lt;P&gt;Yes, thats the problem... some lines has the number extracted as alert_num, some has not. thats why could not find all of them in whole search.&lt;/P&gt;&lt;P&gt;the alert_num string is the same, so if it is possible have to two different extract regex for that field, or take that number as a simple string to use it in the outer search.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 08:44:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-define-multiple-search-or-subsearch-to-merge-all-relevant/m-p/598262#M208319</guid>
      <dc:creator>gszabo</dc:creator>
      <dc:date>2022-05-18T08:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: correlated search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-define-multiple-search-or-subsearch-to-merge-all-relevant/m-p/598268#M208321</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main [search index=main ( managed_host="host_A" OR managed_host="host_B" OR managed_host="host_C" ) | dedup alert_num | fields alert_num | rename alert_num as query | format]&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 18 May 2022 08:56:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-define-multiple-search-or-subsearch-to-merge-all-relevant/m-p/598268#M208321</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-18T08:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: correlated search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-define-multiple-search-or-subsearch-to-merge-all-relevant/m-p/598271#M208323</link>
      <description>&lt;P&gt;Yes, thats works now. Arbor logs without any structure... i love it.&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 09:02:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-define-multiple-search-or-subsearch-to-merge-all-relevant/m-p/598271#M208323</guid>
      <dc:creator>gszabo</dc:creator>
      <dc:date>2022-05-18T09:02:45Z</dc:date>
    </item>
  </channel>
</rss>

