<?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: Combine 2 searches into one pie chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-searches-into-one-pie-chart/m-p/555309#M157634</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234595"&gt;@HMIPowell&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Glad to help you.&lt;/P&gt;&lt;P&gt;Happy Splunking&amp;nbsp;&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jun 2021 13:45:40 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2021-06-10T13:45:40Z</dc:date>
    <item>
      <title>Combine 2 searches into one pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-searches-into-one-pie-chart/m-p/555306#M157631</link>
      <description>&lt;P&gt;How can the following 2 searches be used in a single Pie Chart?&lt;/P&gt;&lt;P&gt;SEARCH ONE&lt;BR /&gt;index=security host=THAT* OR host=THIS* SourceName="Microsoft-AzureMfa-AuthZ" "Access Accepted" | rex field=Message "\S*user (?&amp;lt;ValueOne&amp;gt;\S*)" | dedup ValueOne | Stats Count&lt;/P&gt;&lt;P&gt;SEARCH TWO&lt;BR /&gt;index=network source="D:\\Radlogs\\IN*.log" SOMETHING1* "4136,2," | rex "(?:[^,]*,\s*){1}(?&amp;lt;ValueTwo&amp;gt;\w+)"| dedup ValueTwo | Stats Count&lt;/P&gt;&lt;P&gt;I can join both the statements, but that doesn't allow them both to be used in a single chart.&amp;nbsp; Seems one carries precedence over the other.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also tried&lt;BR /&gt;( index=security host=THAT* OR host=THIS* SourceName="Microsoft-AzureMfa-AuthZ" "Access Accepted" | rex field=Message "\S*user (?&amp;lt;ValueOne&amp;gt;\S*)" | dedup ValueOne ) OR ( index=network source="D:\\Radlogs\\IN*.log" SOMETHING1* "4136,2," | rex "(?:[^,]*,\s*){1}(?&amp;lt;ValueTwo&amp;gt;\w+)"| dedup ValueTwo ) | stats count by index | replace security with TestOne network with TestTwo&lt;/P&gt;&lt;P&gt;that gives a unbalanced&amp;nbsp;&lt;SPAN&gt;parentheses&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 13:22:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-2-searches-into-one-pie-chart/m-p/555306#M157631</guid>
      <dc:creator>HMIPowell</dc:creator>
      <dc:date>2021-06-10T13:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 searches into one pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-searches-into-one-pie-chart/m-p/555307#M157632</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234595"&gt;@HMIPowell&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you looking for this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=security host=THAT* OR host=THIS* SourceName="Microsoft-AzureMfa-AuthZ" "Access Accepted" 
| rex field=Message "\S*user (?&amp;lt;ValueOne&amp;gt;\S*)" 
| dedup ValueOne 
| append [ search index=network source="D:\\Radlogs\\IN*.log" SOMETHING1* "4136,2," 
| rex "(?:[^,]*,\s*){1}(?&amp;lt;ValueTwo&amp;gt;\w+)" 
| dedup ValueTwo ]
| stats count by index 
| replace security with TestOne network with TestTwo&lt;/LI-CODE&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 13:38:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-2-searches-into-one-pie-chart/m-p/555307#M157632</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-10T13:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 searches into one pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-searches-into-one-pie-chart/m-p/555308#M157633</link>
      <description>&lt;P&gt;Exacty that!&amp;nbsp; Thanks for the quick response!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 13:44:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-2-searches-into-one-pie-chart/m-p/555308#M157633</guid>
      <dc:creator>HMIPowell</dc:creator>
      <dc:date>2021-06-10T13:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 searches into one pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-searches-into-one-pie-chart/m-p/555309#M157634</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234595"&gt;@HMIPowell&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Glad to help you.&lt;/P&gt;&lt;P&gt;Happy Splunking&amp;nbsp;&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 13:45:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-2-searches-into-one-pie-chart/m-p/555309#M157634</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-10T13:45:40Z</dc:date>
    </item>
  </channel>
</rss>

