<?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 How to combine searches in order to output the total result of each exception? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221083#M64960</link>
    <description>&lt;P&gt;I have able to get unique result for each logs...now my issue is that i dont know how to combine the results&lt;BR /&gt;
this works &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index1 sourcetype=mySourcetype "Caused by:"
 | rex field=_raw "Caused by:\s(?[\S]+)"
 | stats count by myException

index=index2 sourcetype=mySourcetype "Caused by:"
 | rex field=_raw "Caused by:\s(?[\S]+)"
 | stats count by myException
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;how to join index1 and index2 and print the result?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2017 22:55:22 GMT</pubDate>
    <dc:creator>jw44250</dc:creator>
    <dc:date>2017-01-05T22:55:22Z</dc:date>
    <item>
      <title>How to combine searches in order to output the total result of each exception?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221083#M64960</link>
      <description>&lt;P&gt;I have able to get unique result for each logs...now my issue is that i dont know how to combine the results&lt;BR /&gt;
this works &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index1 sourcetype=mySourcetype "Caused by:"
 | rex field=_raw "Caused by:\s(?[\S]+)"
 | stats count by myException

index=index2 sourcetype=mySourcetype "Caused by:"
 | rex field=_raw "Caused by:\s(?[\S]+)"
 | stats count by myException
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;how to join index1 and index2 and print the result?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 22:55:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221083#M64960</guid>
      <dc:creator>jw44250</dc:creator>
      <dc:date>2017-01-05T22:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine searches in order to output the total result of each exception?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221084#M64961</link>
      <description>&lt;P&gt;Try this please:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=index1 OR index=index2) sourcetype=mySourcetype "Caused by:"
|  rex field=_raw "Caused by:\s(?&amp;lt;myException&amp;gt;[\S]+)"
| stats count by myException
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also if this answer helped you, please close it by accepting the answer. Thanks.&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/486114/how-to-generate-a-table-that-lists-all-java-except.html#answer-484734"&gt;https://answers.splunk.com/answers/486114/how-to-generate-a-table-that-lists-all-java-except.html#answer-484734&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 00:11:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221084#M64961</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-01-06T00:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine searches in order to output the total result of each exception?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221085#M64962</link>
      <description>&lt;P&gt;How do you want to combine, get a single total OR get separate total in single search result? @gokadroid answer is giving you former.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 04:27:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221085#M64962</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-06T04:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine searches in order to output the total result of each exception?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221086#M64963</link>
      <description>&lt;P&gt;Output i am looking is :&lt;/P&gt;

&lt;P&gt;SearchType .         ExceptionName .               Occurance &lt;BR /&gt;
xyz.                  java.io.Exception                10&lt;BR /&gt;
abc .                   java.lang.ClassException .  5&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 04:37:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221086#M64963</guid>
      <dc:creator>jw44250</dc:creator>
      <dc:date>2017-01-06T04:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine searches in order to output the total result of each exception?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221087#M64964</link>
      <description>&lt;P&gt;How to get the SearchType? Its not a field in your original query.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 04:40:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221087#M64964</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-06T04:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine searches in order to output the total result of each exception?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221088#M64965</link>
      <description>&lt;P&gt;separate total in single search row &lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 04:41:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221088#M64965</guid>
      <dc:creator>jw44250</dc:creator>
      <dc:date>2017-01-06T04:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine searches in order to output the total result of each exception?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221089#M64966</link>
      <description>&lt;P&gt;Just add the index field in the stats command in @gokadroid's answer, if you want to differential between exceptions from index1 and index2.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=index1 OR index=index2) sourcetype=mySourcetype "Caused by:"
 |  rex field=_raw "Caused by:\s(?&amp;lt;myException&amp;gt;[\S]+)"
 | stats count by index myException
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jan 2017 04:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221089#M64966</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-06T04:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine searches in order to output the total result of each exception?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221090#M64967</link>
      <description>&lt;P&gt;I think what I understood that requirement was:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index1 had exception1, exception2&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;index2 had exception 2, exception3&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Required output&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   Type.............. count
    exception1....... 1
    exception2........ 2
    exception3........ 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jan 2017 04:49:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221090#M64967</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-01-06T04:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine searches in order to output the total result of each exception?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221091#M64968</link>
      <description>&lt;P&gt;That's why having an expected output in the question clears the requirement 100% of the time.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 05:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221091#M64968</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-06T05:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine searches in order to output the total result of each exception?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221092#M64969</link>
      <description>&lt;P&gt;Hi Gokadroid &lt;BR /&gt;
How to extract field from below raw by using rex&lt;BR /&gt;
We tried this &lt;/P&gt;

&lt;P&gt;index="&lt;EM&gt;" &amp;nbsp;source="E:\Splunk_logs\PH\Prod\MethodExecution\1088\VWNV02AX01571\MethodExecutionInfo20170215-09.txt" &amp;nbsp; | rex field=_raw "(?P.[^@$@]&lt;/EM&gt;)" | rex field=_raw "(?P.[^vw]*)"&lt;/P&gt;

&lt;P&gt;But able extract 1st Field date based on @$@ but 2nd field onwards we need to try based in 2nd occuranc of @$@ will be 2nd field server name and 3rd occurance of @$@ will be 3 field session ID like that all fields&lt;BR /&gt;
2017-02-15 09:59:51,787@$@VWNV02AX01571@$@72f62f43-7269-4ca9-add5-3b623982a5fc@$@@$@5e3de831-cde6-4b83-be76-0235345063c3@$@OHHNCacheCommonBO@$@LogDynamicObjectsByDelegates@$@LogDynamicObjects@$@2017-02-15 09:59:51.787@$@2017-02-15 09:59:51.787@$@0@$@@$@&lt;/P&gt;

&lt;P&gt;It would be great help for me!!!!!!! &lt;/P&gt;

&lt;P&gt;Happy Splunking I love splunk&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:06:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-searches-in-order-to-output-the-total-result-of/m-p/221092#M64969</guid>
      <dc:creator>puneethgowda</dc:creator>
      <dc:date>2020-09-29T13:06:31Z</dc:date>
    </item>
  </channel>
</rss>

