<?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 to check whether an ID was mentioned before in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358174#M6318</link>
    <description>&lt;P&gt;Hi adonio,&lt;BR /&gt;
is there a way to do this query without having to rely on lookups? Perhaps do a join with another search that searches for all existing ids? I somehow can't make my lookups work..&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2017 11:57:42 GMT</pubDate>
    <dc:creator>ckunath</dc:creator>
    <dc:date>2017-05-03T11:57:42Z</dc:date>
    <item>
      <title>Alert to check whether an ID was mentioned before</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358168#M6312</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;in my logfiles I am sometimes getting an event that looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;finished_ids: 1,2,3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I am trying to construct is an alert that goes off when an ID in that list was not mentioned in my log files ever before.&lt;BR /&gt;
How exactly can I do this? I can eval a field containing the id's of that list, but how can I backtrack the IDs that are not there with it?&lt;/P&gt;

&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 09:25:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358168#M6312</guid>
      <dc:creator>ckunath</dc:creator>
      <dc:date>2017-05-02T09:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Alert to check whether an ID was mentioned before</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358169#M6313</link>
      <description>&lt;P&gt;Are you using the same event finished_ids for cross verifying your historical IDs? Have you already extracted finished_ids as multi-valued comma separated field?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:54:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358169#M6313</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T13:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Alert to check whether an ID was mentioned before</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358170#M6314</link>
      <description>&lt;P&gt;Hi niketnilay,&lt;/P&gt;

&lt;P&gt;I extracted the ids of the list event in a multivalued field (id = 1,2,3) with the name of my historical ids. &lt;BR /&gt;
I'm not sure what you mean by cross verifying my historical ids with the finished_ids event exactly.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 10:44:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358170#M6314</guid>
      <dc:creator>ckunath</dc:creator>
      <dc:date>2017-05-02T10:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Alert to check whether an ID was mentioned before</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358171#M6315</link>
      <description>&lt;P&gt;you can use your search and then table id and outlookup id: &lt;CODE&gt;... | table id | outputlookup id.csv&lt;/CODE&gt;&lt;BR /&gt;
then search again and compare with lookup:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  ... your search for id| NOT [| inputlookup id.csv | fields+ id]
          | stats values(id) AS new_id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 May 2017 12:09:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358171#M6315</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-05-02T12:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Alert to check whether an ID was mentioned before</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358172#M6316</link>
      <description>&lt;P&gt;@adonio - you're missing a "put" from &lt;CODE&gt;outputlookup&lt;/CODE&gt;.  For a minute there, I thought I had learned a new command.  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;  Also, &lt;CODE&gt;inputlookup&lt;/CODE&gt; needs the pipe before it, IIRC.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 13:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358172#M6316</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-05-02T13:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alert to check whether an ID was mentioned before</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358173#M6317</link>
      <description>&lt;P&gt;oh boy outlookup, i am taking off for the rest of the day.&lt;BR /&gt;
thanks for that!&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 13:13:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358173#M6317</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-05-02T13:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Alert to check whether an ID was mentioned before</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358174#M6318</link>
      <description>&lt;P&gt;Hi adonio,&lt;BR /&gt;
is there a way to do this query without having to rely on lookups? Perhaps do a join with another search that searches for all existing ids? I somehow can't make my lookups work..&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 11:57:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358174#M6318</guid>
      <dc:creator>ckunath</dc:creator>
      <dc:date>2017-05-03T11:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Alert to check whether an ID was mentioned before</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358175#M6319</link>
      <description>&lt;P&gt;Hi ckunath,&lt;BR /&gt;
if your IDs are listable, you can put them in a lookup and then verify if they are present in a period using a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search
| stats count by ID
| append [ | inputlookup my_ids.csv | dedup ID | count=0 | table ID count]
| stats sum(count) AS Total by ID
| where Total=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this way IDs with Total=0 are the ones missed in that period.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 12:16:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358175#M6319</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-05-03T12:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alert to check whether an ID was mentioned before</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358176#M6320</link>
      <description>&lt;P&gt;Hi giuseppe,&lt;BR /&gt;
Is there perhaps a way to not use lookup as solution?&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 12:47:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358176#M6320</guid>
      <dc:creator>ckunath</dc:creator>
      <dc:date>2017-05-03T12:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Alert to check whether an ID was mentioned before</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358177#M6321</link>
      <description>&lt;P&gt;Instead of lookup you can use a search, but it's a limited check because you're not sure to check all IDs:&lt;BR /&gt;
in this example I'm checking if the IDs of the last hour were present in the 24 hours before:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search earliest=-25h@h latest=-h@h
| stats count by ID
| append [ 
      your_search earliest=-h@h latest=now
     | dedup ID 
     | count=0 
     | table ID count ]
| stats sum(count) AS Total by ID
| where Total=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the problem is to manage the lookup, you could generate it automatically using a scheduled search (e.g. every hour or every night):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search earliest=-h@h latest=now
| dedup ID 
| count=0 
| table ID count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I usually prefer use the lookup.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 13:20:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-to-check-whether-an-ID-was-mentioned-before/m-p/358177#M6321</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-05-03T13:20:36Z</dc:date>
    </item>
  </channel>
</rss>

