<?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: Need help to create dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-to-create-dashboard/m-p/562354#M46234</link>
    <description>&lt;P&gt;Thank you ITWhisperer..!!&lt;/P&gt;&lt;P&gt;The query worked fine..&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2021 05:36:56 GMT</pubDate>
    <dc:creator>Mrig342</dc:creator>
    <dc:date>2021-08-06T05:36:56Z</dc:date>
    <item>
      <title>Need help to create dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-to-create-dashboard/m-p/562272#M46228</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to create a dashboard panel merging two different search queries. I have below two queries:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;index=int_gcg_nam_eventcloud_164167 host="mwgcb-ckbla02U*" source="/logs/confluent/kafkaLogs/server.log" "Broker may not be available" | rex field=_raw "(?ms)]\s(?P&amp;lt;Code&amp;gt;\w+)\s\[" | search Code="WARN" | stats count | eval mwgcb-ckbla02U.nam.nsroot.net=if(count=0, "Running", "Down") | table mwgcb-ckbla02U.nam.nsroot.net&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This give me the status of the&amp;nbsp; broker based on the availability of the indicator&amp;nbsp;"Broker may not be available".&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;index=int_gcg_nam_eventcloud_164167 host="mwgcb-ckbla02U*" source="/logs/confluent/zookeeperLogs/*" "java.net.SocketException: Broken pipe" OR "ZK Down" | rex field=_raw "(?ms)\]\s(?P&amp;lt;Code&amp;gt;\w+)\s" | search Code="WARN" | rex field=_raw "(?ms)\/(?P&amp;lt;IP_Address&amp;gt;(\d+\.){3}\d+)\:\d+" | stats count | eval mwgcb-ckbla02U.nam.nsroot.net=if(count=0, "Running", "Down") | table mwgcb-ckbla02U.nam.nsroot.net&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This gives me the status of zookeeper based on the availability of the indicators&amp;nbsp;"java.net.SocketException: Broken pipe" OR "ZK Down".&lt;/P&gt;&lt;P&gt;Now, I want to merge both the search queries such that I can get the status of both broker and zookeeper in a tabular format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for e.g.&amp;nbsp; for the host&amp;nbsp;mwgcb-ckbla02U.nam.nsroot.net&lt;/P&gt;&lt;P&gt;Broker&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Down&lt;/P&gt;&lt;P&gt;Zookeeper&amp;nbsp; &amp;nbsp; Running&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried creating a query as below:&lt;/P&gt;&lt;P&gt;index=int_gcg_nam_eventcloud_164167 host="mwgcb-ckbla02U*" source="/logs/confluent/kafkaLogs/server.log" OR source="/logs/confluent/zookeeperLogs/zookeeper.log" "Broker may not be available" OR "java.net.SocketException: Broken pipe" OR "ZK Down" | stats count by source | lookup component_lookup.csv "source" | eval Status=if(count=0, "Running", "Down")| table Component,Status&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However in any time range where the indicators are not available, it throws output as "No results found" and hence not able to create the dashboard.&lt;/P&gt;&lt;P&gt;Please help to get the output in the desired manner. Thanks..!!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 15:15:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-to-create-dashboard/m-p/562272#M46228</guid>
      <dc:creator>Mrig342</dc:creator>
      <dc:date>2021-08-05T15:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to create dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-to-create-dashboard/m-p/562273#M46229</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=int_gcg_nam_eventcloud_164167 host="mwgcb-ckbla02U*" source="/logs/confluent/kafkaLogs/server.log" OR source="/logs/confluent/zookeeperLogs/zookeeper.log" "Broker may not be available" OR "java.net.SocketException: Broken pipe" OR "ZK Down" 
| stats count by source 
| append [| makeresults
  | eval source=split("/logs/confluent/kafkaLogs/server.log|/logs/confluent/zookeeperLogs/zookeeper.log","|")
  | mvexpand source
  | eval count=0
  | table count source]
| stats sum(count) as count by source
| lookup component_lookup.csv "source" 
| eval Status=if(count=0, "Running", "Down")
| table Component,Status&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Aug 2021 15:38:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-to-create-dashboard/m-p/562273#M46229</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-05T15:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to create dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-to-create-dashboard/m-p/562354#M46234</link>
      <description>&lt;P&gt;Thank you ITWhisperer..!!&lt;/P&gt;&lt;P&gt;The query worked fine..&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 05:36:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-to-create-dashboard/m-p/562354#M46234</guid>
      <dc:creator>Mrig342</dc:creator>
      <dc:date>2021-08-06T05:36:56Z</dc:date>
    </item>
  </channel>
</rss>

