<?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 newb help creating an alert in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/newb-help-creating-an-alert/m-p/42137#M9807</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;i'm somewhat new to splunk and hoping some of the more seasoned veterans can assist me.&lt;/P&gt;

&lt;P&gt;I have a process hashing a file and writing some output to a log.&lt;/P&gt;

&lt;P&gt;the entries look like this:&lt;/P&gt;

&lt;P&gt;Wed 11/21/201215:17:54.38 //// File Checksum Integrity Verifier version 2.05.//31127455faac11149dfdabc2261cdb7a c:\integrity\integrityservicex.exe&lt;BR /&gt;
host=WIN-IK3D6F4B55R   Options|  sourcetype=integrity-too_small   Options|&lt;BR /&gt;&lt;BR /&gt;
source=C:\Program Files\SplunkUniversalForwarder\integrity.txt   Options&lt;/P&gt;

&lt;P&gt;it is being indexed and is searchable properly.&lt;/P&gt;

&lt;P&gt;what I wanted to to was create an alert for when the hash entry changes, in this case the hash is :31127455faac11149dfdabc2261cdb7a&lt;/P&gt;

&lt;P&gt;so I would always expect the valid entry to exist in the file, what I want to do is detect an invalid entry (the hash has changed) and alert based on that.&lt;/P&gt;

&lt;P&gt;Could anyone offer a few hints to get me started?&lt;/P&gt;</description>
    <pubDate>Wed, 21 Nov 2012 20:40:26 GMT</pubDate>
    <dc:creator>plastiiq</dc:creator>
    <dc:date>2012-11-21T20:40:26Z</dc:date>
    <item>
      <title>newb help creating an alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/newb-help-creating-an-alert/m-p/42137#M9807</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;i'm somewhat new to splunk and hoping some of the more seasoned veterans can assist me.&lt;/P&gt;

&lt;P&gt;I have a process hashing a file and writing some output to a log.&lt;/P&gt;

&lt;P&gt;the entries look like this:&lt;/P&gt;

&lt;P&gt;Wed 11/21/201215:17:54.38 //// File Checksum Integrity Verifier version 2.05.//31127455faac11149dfdabc2261cdb7a c:\integrity\integrityservicex.exe&lt;BR /&gt;
host=WIN-IK3D6F4B55R   Options|  sourcetype=integrity-too_small   Options|&lt;BR /&gt;&lt;BR /&gt;
source=C:\Program Files\SplunkUniversalForwarder\integrity.txt   Options&lt;/P&gt;

&lt;P&gt;it is being indexed and is searchable properly.&lt;/P&gt;

&lt;P&gt;what I wanted to to was create an alert for when the hash entry changes, in this case the hash is :31127455faac11149dfdabc2261cdb7a&lt;/P&gt;

&lt;P&gt;so I would always expect the valid entry to exist in the file, what I want to do is detect an invalid entry (the hash has changed) and alert based on that.&lt;/P&gt;

&lt;P&gt;Could anyone offer a few hints to get me started?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 20:40:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/newb-help-creating-an-alert/m-p/42137#M9807</guid>
      <dc:creator>plastiiq</dc:creator>
      <dc:date>2012-11-21T20:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: newb help creating an alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/newb-help-creating-an-alert/m-p/42138#M9808</link>
      <description>&lt;P&gt;A method will be to use a field extraction to get the value of the hash from each event.&lt;BR /&gt;
Then pick a timerange and get the first and last hash of the events and add some logic.&lt;BR /&gt;
Finally setup an alert on the number of results &amp;gt; 0&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;mysearch&amp;gt; &lt;BR /&gt;
| rex "version \d+\.\d+.(|\d+)//(?&amp;lt;hash&amp;gt;[\w\d]*)" &lt;BR /&gt;
| stats latest(_time) as _time latest(hash) AS newhash earliest(hash) AS oldhash &lt;BR /&gt;
| WHERE NOT newhash=oldhash &lt;BR /&gt;
| table _time newhash&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 20:59:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/newb-help-creating-an-alert/m-p/42138#M9808</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-11-21T20:59:44Z</dc:date>
    </item>
  </channel>
</rss>

