<?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 Multiple Search for Chart in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Multiple-Search-for-Chart/m-p/557056#M38748</link>
    <description>&lt;P&gt;I have 4 applications. All of them generate events like RECEIVED, DELIVERED and DISCARDED.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my dashboard, i want to have panel which shows :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sum of event count of RECEIVED from cs-app1 , cs-app2 and&amp;nbsp; cs-app3.&lt;/LI&gt;&lt;LI&gt;sum of event count of DELIVERED from cs-app4 and&lt;/LI&gt;&lt;LI&gt;sum of all DISCARDED from all of the app.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Currently these 3 are displayed as 3 different timecharts panels.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to combine them as one single timechart which would reduce the clutter on the dashboard..&lt;/P&gt;&lt;P&gt;Is that possible.? If so how should i frame the query which is efficient.&lt;/P&gt;&lt;P&gt;Event example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "log_processed" : {
     "message" : { "app_name" : "cs-app1", "logEvent" : "RECEIVED" }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;RECEIVED events&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=dockerlogs
| search log_processed.app_name IN ("cs-app1", "cs-app2","cs-app3")
| spath input=log_processed.message output=logEvent path=logEvent 
| search logEvent = "RECEIVED"
| timechart span=1d  count(logEvent) by logEvent&lt;/LI-CODE&gt;&lt;P&gt;DELIVERED events&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=dockerlogs kubernetes.namespace_name=default
| search log_processed.app_name IN ("cs-app4")
| spath input=log_processed.message output=logEvent path=logEvent 
| search logEvent = "DELIVERED"
| timechart span=1d  count(logEvent) by logEvent&lt;/LI-CODE&gt;&lt;P&gt;DISCARDED events&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=dockerlogs kubernetes.namespace_name=default
| search log_processed.app_name=*
| spath input=log_processed.message output=logEvent path=logEvent 
| search logEvent = "DISCARDED"
| timechart span=1d  count(logEvent) by logEvent&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 24 Jun 2021 19:46:36 GMT</pubDate>
    <dc:creator>rangarbus</dc:creator>
    <dc:date>2021-06-24T19:46:36Z</dc:date>
    <item>
      <title>Multiple Search for Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Multiple-Search-for-Chart/m-p/557056#M38748</link>
      <description>&lt;P&gt;I have 4 applications. All of them generate events like RECEIVED, DELIVERED and DISCARDED.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my dashboard, i want to have panel which shows :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sum of event count of RECEIVED from cs-app1 , cs-app2 and&amp;nbsp; cs-app3.&lt;/LI&gt;&lt;LI&gt;sum of event count of DELIVERED from cs-app4 and&lt;/LI&gt;&lt;LI&gt;sum of all DISCARDED from all of the app.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Currently these 3 are displayed as 3 different timecharts panels.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to combine them as one single timechart which would reduce the clutter on the dashboard..&lt;/P&gt;&lt;P&gt;Is that possible.? If so how should i frame the query which is efficient.&lt;/P&gt;&lt;P&gt;Event example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "log_processed" : {
     "message" : { "app_name" : "cs-app1", "logEvent" : "RECEIVED" }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;RECEIVED events&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=dockerlogs
| search log_processed.app_name IN ("cs-app1", "cs-app2","cs-app3")
| spath input=log_processed.message output=logEvent path=logEvent 
| search logEvent = "RECEIVED"
| timechart span=1d  count(logEvent) by logEvent&lt;/LI-CODE&gt;&lt;P&gt;DELIVERED events&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=dockerlogs kubernetes.namespace_name=default
| search log_processed.app_name IN ("cs-app4")
| spath input=log_processed.message output=logEvent path=logEvent 
| search logEvent = "DELIVERED"
| timechart span=1d  count(logEvent) by logEvent&lt;/LI-CODE&gt;&lt;P&gt;DISCARDED events&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=dockerlogs kubernetes.namespace_name=default
| search log_processed.app_name=*
| spath input=log_processed.message output=logEvent path=logEvent 
| search logEvent = "DISCARDED"
| timechart span=1d  count(logEvent) by logEvent&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Jun 2021 19:46:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Multiple-Search-for-Chart/m-p/557056#M38748</guid>
      <dc:creator>rangarbus</dc:creator>
      <dc:date>2021-06-24T19:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Search for Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Multiple-Search-for-Chart/m-p/557062#M38749</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath input=events output=app_name path=log_processed.message.app_name
| spath input=events output=logEvent path=log_processed.message.logEvent
| where logEvent="DISCARDED" OR (logEvent="DELIVERED" AND app_name="cs-app4") OR (logEvent="RECEIVED" AND app_name!="cs-app4")
| timechart count(eval(match(logEvent,"DISCARDED"))) as discarded, count(eval(match(logEvent,"RECEIVED"))) as received, count(eval(match(logEvent,"DELIVERED"))) as delivered&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Jun 2021 20:07:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Multiple-Search-for-Chart/m-p/557062#M38749</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-24T20:07:49Z</dc:date>
    </item>
  </channel>
</rss>

