<?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: Alert if missing field in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-Alert-if-missing-field-value/m-p/605118#M49708</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244559"&gt;@Newser703&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;this search cannot have the output you shared because there's also the server field,&lt;/P&gt;&lt;P&gt;Probably it should be something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=MyIndex
| where Month="January" OR Month="February"
| stats sum("Number of connexions") AS Sum BY Server Month&lt;/LI-CODE&gt;&lt;P&gt;but if&amp;nbsp; you don't have a value for a server in a month, you don't have the entire row,&lt;/P&gt;&lt;P&gt;maybe you could have something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=MyIndex
| where Month="January" OR Month="February"
| Chart sum("Number of connexions") AS Sum OVER Server BY Month&lt;/LI-CODE&gt;&lt;P&gt;But anyway you don't have the missing value ,&lt;/P&gt;&lt;P&gt;You could use a workaround:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=MyIndex Month="January" OR Month="February"
| stats dc(Month) AS dc_month values(Month) AS Month BY Server
| where dc_month=1&lt;/LI-CODE&gt;&lt;P&gt;This search has anly one limit: if the values of both months are missing.&lt;/P&gt;&lt;P&gt;Then anyway, you don't need to use where after the main search, it's always better (for performances) to put all the search conditions as left as possible.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2022 09:14:27 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-07-11T09:14:27Z</dc:date>
    <item>
      <title>Is there a way to Alert if missing field value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-Alert-if-missing-field-value/m-p/605113#M49705</link>
      <description>&lt;P&gt;Hello, I have an index that looks like that :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Server   Month       Number of connexions
---------------------------------------
  A     January            10
  B     January            12
  C     January            7
  A     February           5
  B     February           
  C     February           0&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say I sum the Number of connexions by Month, is there a way to raise an alert if a value is missing (here Server B in February) ?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 14:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-Alert-if-missing-field-value/m-p/605113#M49705</guid>
      <dc:creator>Newser703</dc:creator>
      <dc:date>2022-07-11T14:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if missing field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-Alert-if-missing-field-value/m-p/605114#M49706</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244559"&gt;@Newser703&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;could you share your search? so I can help you to define the firing condition.&lt;/P&gt;&lt;P&gt;Anyway, I suppose that if a value is missing you don't have logs from that source, maybe it could betetr to have an alert that immediately fires if you haven't logs and not after one month!&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 08:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-Alert-if-missing-field-value/m-p/605114#M49706</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-07-11T08:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if missing field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-Alert-if-missing-field-value/m-p/605116#M49707</link>
      <description>&lt;P&gt;The search is very simple,&amp;nbsp;because the index already looks like the one I described.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's something like :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=MyIndex
| where Month="January" OR Month="February"
| stats sum("Number of connexions") AS Sum BY Month&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 08:29:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-Alert-if-missing-field-value/m-p/605116#M49707</guid>
      <dc:creator>Newser703</dc:creator>
      <dc:date>2022-07-11T08:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if missing field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-Alert-if-missing-field-value/m-p/605118#M49708</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244559"&gt;@Newser703&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;this search cannot have the output you shared because there's also the server field,&lt;/P&gt;&lt;P&gt;Probably it should be something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=MyIndex
| where Month="January" OR Month="February"
| stats sum("Number of connexions") AS Sum BY Server Month&lt;/LI-CODE&gt;&lt;P&gt;but if&amp;nbsp; you don't have a value for a server in a month, you don't have the entire row,&lt;/P&gt;&lt;P&gt;maybe you could have something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=MyIndex
| where Month="January" OR Month="February"
| Chart sum("Number of connexions") AS Sum OVER Server BY Month&lt;/LI-CODE&gt;&lt;P&gt;But anyway you don't have the missing value ,&lt;/P&gt;&lt;P&gt;You could use a workaround:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=MyIndex Month="January" OR Month="February"
| stats dc(Month) AS dc_month values(Month) AS Month BY Server
| where dc_month=1&lt;/LI-CODE&gt;&lt;P&gt;This search has anly one limit: if the values of both months are missing.&lt;/P&gt;&lt;P&gt;Then anyway, you don't need to use where after the main search, it's always better (for performances) to put all the search conditions as left as possible.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 09:14:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-Alert-if-missing-field-value/m-p/605118#M49708</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-07-11T09:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if missing field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-Alert-if-missing-field-value/m-p/605120#M49709</link>
      <description>&lt;P&gt;What I shared in the question is the base index, what I'm working with before using any command.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 09:27:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-Alert-if-missing-field-value/m-p/605120#M49709</guid>
      <dc:creator>Newser703</dc:creator>
      <dc:date>2022-07-11T09:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if missing field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-Alert-if-missing-field-value/m-p/605125#M49710</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244559"&gt;@Newser703&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did my solution work for you?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 10:11:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-Alert-if-missing-field-value/m-p/605125#M49710</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-07-11T10:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if missing field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-Alert-if-missing-field-value/m-p/605132#M49715</link>
      <description>&lt;P&gt;The main question is what do your results really look like.&lt;/P&gt;&lt;P&gt;Because if you do simple stats count splunk will not create a row in results when there are no events to aggregate. It will however produce a row of results with count of 0 if you use timechart.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 10:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-Alert-if-missing-field-value/m-p/605132#M49715</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-07-11T10:57:40Z</dc:date>
    </item>
  </channel>
</rss>

