<?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 add multiple attributes in single query in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-multiple-attributes-in-single-query/m-p/545263#M37445</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have one requirement.&lt;/P&gt;&lt;P&gt;I am creating one alert and the query is below:&lt;/P&gt;&lt;P&gt;index=abc &lt;STRONG&gt;ns=blazepsfpublish&lt;/STRONG&gt; "NullPointerException" | rex "message=(?&amp;lt;ExceptionMessage&amp;gt;[^\n]+)"|dedup ExceptionMessage,ns|eval _time = strftime(_time,"%Y-%m-%d %H:%M:%S.%3N")|table app_name, ExceptionMessage ,_time, environment, pod_name,ns|rename app_name as APP_NAME, _time as Time, environment as Environment, pod_name as Pod_Name&lt;/P&gt;&lt;P&gt;My requirement is that I have multiple 6-7 ns and I want to include them in same query rather then appending.&lt;/P&gt;&lt;P&gt;Can someone guide me on this .&lt;/P&gt;&lt;P&gt;Below are my ns names:&lt;/P&gt;&lt;P&gt;sidh-datagraph&lt;/P&gt;&lt;P&gt;datagraph&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;How can I include all ns&amp;nbsp; &amp;nbsp;in single query&lt;/P&gt;</description>
    <pubDate>Thu, 25 Mar 2021 06:16:46 GMT</pubDate>
    <dc:creator>aditsss</dc:creator>
    <dc:date>2021-03-25T06:16:46Z</dc:date>
    <item>
      <title>How to add multiple attributes in single query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-multiple-attributes-in-single-query/m-p/545263#M37445</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have one requirement.&lt;/P&gt;&lt;P&gt;I am creating one alert and the query is below:&lt;/P&gt;&lt;P&gt;index=abc &lt;STRONG&gt;ns=blazepsfpublish&lt;/STRONG&gt; "NullPointerException" | rex "message=(?&amp;lt;ExceptionMessage&amp;gt;[^\n]+)"|dedup ExceptionMessage,ns|eval _time = strftime(_time,"%Y-%m-%d %H:%M:%S.%3N")|table app_name, ExceptionMessage ,_time, environment, pod_name,ns|rename app_name as APP_NAME, _time as Time, environment as Environment, pod_name as Pod_Name&lt;/P&gt;&lt;P&gt;My requirement is that I have multiple 6-7 ns and I want to include them in same query rather then appending.&lt;/P&gt;&lt;P&gt;Can someone guide me on this .&lt;/P&gt;&lt;P&gt;Below are my ns names:&lt;/P&gt;&lt;P&gt;sidh-datagraph&lt;/P&gt;&lt;P&gt;datagraph&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;How can I include all ns&amp;nbsp; &amp;nbsp;in single query&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 06:16:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-multiple-attributes-in-single-query/m-p/545263#M37445</guid>
      <dc:creator>aditsss</dc:creator>
      <dc:date>2021-03-25T06:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple attributes in single query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-multiple-attributes-in-single-query/m-p/545266#M37446</link>
      <description>&lt;P&gt;Use IN like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=abc ns IN ("blazepsfpublish", "sidh-datagraph", "datagraph") "NullPointerException" &lt;/LI-CODE&gt;&lt;P&gt;Or use OR like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=abc (ns="blazepsfpublish" OR ns="sidh-datagraph" OR ns="datagraph") "NullPointerException" &lt;/LI-CODE&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 06:27:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-multiple-attributes-in-single-query/m-p/545266#M37446</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-03-25T06:27:26Z</dc:date>
    </item>
  </channel>
</rss>

