<?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: Is my alert query is correct in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/508969#M4333</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;yes i tried this also, its working. Beacuse server is generating this error after every 2 or 3 days not sure. So if you suggest, can i set this simple one query into the final alert ?&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2020 03:39:32 GMT</pubDate>
    <dc:creator>LogUx</dc:creator>
    <dc:date>2020-07-14T03:39:32Z</dc:date>
    <item>
      <title>Is my alert query is correct</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/508868#M4330</link>
      <description>&lt;P&gt;I want to create an alert for one particular error. So what would be the exact spl i need to write?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error is not in the intersting field.So i used this one.&lt;/P&gt;&lt;P&gt;I did from my end :&lt;/P&gt;&lt;P&gt;index=os&amp;nbsp; source="/var/log/messages" | eval&amp;nbsp; new_error= "server is not responding"&lt;/P&gt;&lt;P&gt;Is the above search correct? If not then please provide me the correct one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 18:35:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/508868#M4330</guid>
      <dc:creator>LogUx</dc:creator>
      <dc:date>2020-07-13T18:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is my alert query is correct</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/508877#M4331</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/70277"&gt;@LogUx&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the SPL you mentioned won't work. Assuming "new_error" field is not available&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=os  source="/var/log/messages" | eval new_error= if(like(_raw,"%server is not responding%"), "Yes", "No") | where new_error="Yes"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;you can also use search in place of where command.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 18:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/508877#M4331</guid>
      <dc:creator>anilchaithu</dc:creator>
      <dc:date>2020-07-13T18:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is my alert query is correct</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/508880#M4332</link>
      <description>&lt;P&gt;No, your search is not correct.&amp;nbsp; It fetches all events from the /var/log/messages file and creates a field in each event called "new_error".&amp;nbsp; This probably is not the goal.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To give a working we query we must know the purpose for the alert.&amp;nbsp; What is it looking for?&lt;/P&gt;&lt;P&gt;Perhaps this will get you started.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=os source="/var/log/messages" "server is not responding"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Jul 2020 19:01:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/508880#M4332</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-13T19:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is my alert query is correct</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/508969#M4333</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;yes i tried this also, its working. Beacuse server is generating this error after every 2 or 3 days not sure. So if you suggest, can i set this simple one query into the final alert ?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 03:39:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/508969#M4333</guid>
      <dc:creator>LogUx</dc:creator>
      <dc:date>2020-07-14T03:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is my alert query is correct</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/508970#M4334</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/204579"&gt;@anilchaithu&lt;/a&gt;&amp;nbsp;Yes this approach is also seems correct. I will try this one and let you know.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 03:43:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/508970#M4334</guid>
      <dc:creator>LogUx</dc:creator>
      <dc:date>2020-07-14T03:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is my alert query is correct</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/509059#M4336</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/204579"&gt;@anilchaithu&lt;/a&gt;&amp;nbsp; The mentioned SPL is not working.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 12:36:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/509059#M4336</guid>
      <dc:creator>LogUx</dc:creator>
      <dc:date>2020-07-14T12:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is my alert query is correct</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/509064#M4337</link>
      <description>Any query can become an alert. Once the search completes, click the "Save as" dropdown and select "Alert".</description>
      <pubDate>Tue, 14 Jul 2020 12:44:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/509064#M4337</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-14T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is my alert query is correct</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/509074#M4338</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/70277"&gt;@LogUx&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logic should work. Do you have events in the data with this error? If yes, the text "server is not responding" in the eval command of the logic should match as is to the event.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 13:17:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/509074#M4338</guid>
      <dc:creator>anilchaithu</dc:creator>
      <dc:date>2020-07-14T13:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is my alert query is correct</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/509079#M4339</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/204579"&gt;@anilchaithu&lt;/a&gt;&amp;nbsp;Yes i have the event which occured 4 days ago for that error. When i run a simple search as &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;suggest it capture that event. But when i used to create a field for that error as you also suggest, it is not capturing any event.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 13:50:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Is-my-alert-query-is-correct/m-p/509079#M4339</guid>
      <dc:creator>LogUx</dc:creator>
      <dc:date>2020-07-14T13:50:18Z</dc:date>
    </item>
  </channel>
</rss>

