<?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: How can I combine two different chart queries into a single and get count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-two-different-chart-queries-into-a-single-and/m-p/566825#M197528</link>
    <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=dev | rex "\"tracePoint\\\\\"\s:\s\\\\\"(?&amp;lt;tracePoint&amp;gt;[^\\\]+)" | rex "\"correlationId\\\\\"\s:\s\\\\\"(?&amp;lt;correlationId&amp;gt;[^\\\]+)" |search app="project1" OR app="project2" OR app="project3" OR app="project4" |where tracePoint="EXCEPTION" OR tracePoint="END" |chart count(app) over app by tracePoint| addtotals&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 13 Sep 2021 10:48:52 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-09-13T10:48:52Z</dc:date>
    <item>
      <title>How can I combine two different chart queries into a single and get count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-two-different-chart-queries-into-a-single-and/m-p/566823#M197526</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two chart queries to get the success count and error count which are working as expected.&amp;nbsp; Now I want to add the both and get the total count from both columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query 1:&amp;nbsp; index=dev | rex "\"tracePoint\\\\\"\s:\s\\\\\"(?&amp;lt;tracePoint&amp;gt;[^\\\]+)" | rex "\"correlationId\\\\\"\s:\s\\\\\"(?&amp;lt;correlationId&amp;gt;[^\\\]+)" |search app="project1" OR app="project2" OR app="project3" OR app="project4" |where tracePoint="&lt;EM&gt;&lt;STRONG&gt;EXCEPTION&lt;/STRONG&gt;&lt;/EM&gt;" |chart count(app) over app by dc(correlationId)&lt;/P&gt;&lt;P&gt;Query 2:&amp;nbsp; index=dev | rex "\"tracePoint\\\\\"\s:\s\\\\\"(?&amp;lt;tracePoint&amp;gt;[^\\\]+)" | rex "\"correlationId\\\\\"\s:\s\\\\\"(?&amp;lt;correlationId&amp;gt;[^\\\]+)" |search app="project1" OR app="project2" OR app="project3" OR app="project4" |where tracePoint="&lt;EM&gt;&lt;STRONG&gt;END&lt;/STRONG&gt;&lt;/EM&gt;" |chart count(app) over app by dc(correlationId)&lt;/P&gt;&lt;P&gt;I tried with 'appendcols', but it is not working, can anyone help me on this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 10:35:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-two-different-chart-queries-into-a-single-and/m-p/566823#M197526</guid>
      <dc:creator>rkishoreqa</dc:creator>
      <dc:date>2021-09-13T10:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I combine two different chart queries into a single and get count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-two-different-chart-queries-into-a-single-and/m-p/566825#M197528</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=dev | rex "\"tracePoint\\\\\"\s:\s\\\\\"(?&amp;lt;tracePoint&amp;gt;[^\\\]+)" | rex "\"correlationId\\\\\"\s:\s\\\\\"(?&amp;lt;correlationId&amp;gt;[^\\\]+)" |search app="project1" OR app="project2" OR app="project3" OR app="project4" |where tracePoint="EXCEPTION" OR tracePoint="END" |chart count(app) over app by tracePoint| addtotals&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Sep 2021 10:48:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-two-different-chart-queries-into-a-single-and/m-p/566825#M197528</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-13T10:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I combine two different chart queries into a single and get count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-two-different-chart-queries-into-a-single-and/m-p/566832#M197532</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;It worked like a charm.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 11:15:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-two-different-chart-queries-into-a-single-and/m-p/566832#M197532</guid>
      <dc:creator>rkishoreqa</dc:creator>
      <dc:date>2021-09-13T11:15:13Z</dc:date>
    </item>
  </channel>
</rss>

