<?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: Splunk Enterprise Security: Pulling data from message field in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Pulling-data-from-message-field/m-p/439607#M5878</link>
    <description>&lt;P&gt;It did not bold for me....&lt;/P&gt;

&lt;P&gt;This is the part in question:&lt;/P&gt;

&lt;P&gt;Spyware/Grayware: HackTool.VBS.InviBat.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2019 21:36:15 GMT</pubDate>
    <dc:creator>Hegemon76</dc:creator>
    <dc:date>2019-08-07T21:36:15Z</dc:date>
    <item>
      <title>Splunk Enterprise Security: Pulling data from message field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Pulling-data-from-message-field/m-p/439606#M5877</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have been trying unsuccessfully parse/filter the data from the message field:&lt;/P&gt;

&lt;P&gt;Message= &lt;STRONG&gt;Spyware/Grayware: HackTool.VBS.InviBat.&lt;/STRONG&gt; AComputer: PATELS-E7470Domain: Adgrouping\Corp.root.ipc.com\Na\Myhnj\Workstations\WINDOWS 7\Date/Time: 8/7/2019 12:04:21Result: Further action required&lt;/P&gt;

&lt;P&gt;Specifically the bolded part. Essentially what I need to do is remove the "threat event" from Trend Micro logs coming into the SIEM. I was able to do this with the following string but the requirement changes in terms of what we are trying to do with these events once they are parsed/filtered (regex or the line you will see below assuming I even did that correctly).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Message=split(Message,".") | eval Short_Message=mvindex(Message,0,2) | table Short_Message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I suspect the Spyware/Grayware may change but I would really like to get either both the segment containing Spyware/Grayware: "threat name" or just the "threat name" somehow. Once that is accomplished I want to create an alert for ten threat events with the same name within 24 hours and another alert when the same machine gets 10 events within 24 hours.&lt;/P&gt;

&lt;P&gt;I know I can do this with something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|where match(message,"Spyware") |transaction  | search eventcount&amp;gt;=20 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Keep in mind...I was trying this on the line above and apparently, you cannot use transaction command with eval commands? &lt;/P&gt;

&lt;P&gt;Any help would be appreciated! &lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 21:30:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Pulling-data-from-message-field/m-p/439606#M5877</guid>
      <dc:creator>Hegemon76</dc:creator>
      <dc:date>2019-08-07T21:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Enterprise Security: Pulling data from message field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Pulling-data-from-message-field/m-p/439607#M5878</link>
      <description>&lt;P&gt;It did not bold for me....&lt;/P&gt;

&lt;P&gt;This is the part in question:&lt;/P&gt;

&lt;P&gt;Spyware/Grayware: HackTool.VBS.InviBat.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 21:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Pulling-data-from-message-field/m-p/439607#M5878</guid>
      <dc:creator>Hegemon76</dc:creator>
      <dc:date>2019-08-07T21:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Enterprise Security: Pulling data from message field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Pulling-data-from-message-field/m-p/439608#M5879</link>
      <description>&lt;P&gt;If I am not wrong, you have two questions:&lt;BR /&gt;
1. Extracting the pattern '*&lt;EM&gt;Spyware/Grayware: *&lt;/EM&gt;' from '&lt;EM&gt;Messages&lt;/EM&gt;' field.&lt;BR /&gt;
2. Create below alerts-&lt;BR /&gt;
  a. 10 threat events with the same name within 24 hours &lt;BR /&gt;
  b. Same machine gets 10 events within 24 hours&lt;/P&gt;

&lt;P&gt;I hope, creating alert won't be problem when you have correct threat pattern. Can you list down possible different type of '&lt;EM&gt;Messages&lt;/EM&gt;' you get in your log? This will be helpful to extract the 'threat name'.&lt;/P&gt;

&lt;P&gt;You can do that by running below query-&lt;BR /&gt;
    [BASE SEARCH] &lt;BR /&gt;
    | dedup Message&lt;BR /&gt;
    | table Message&lt;BR /&gt;
    | head 20&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 00:54:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Pulling-data-from-message-field/m-p/439608#M5879</guid>
      <dc:creator>jawaharas</dc:creator>
      <dc:date>2019-08-08T00:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Enterprise Security: Pulling data from message field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Pulling-data-from-message-field/m-p/439609#M5880</link>
      <description>&lt;P&gt;Exactly right but the message field has a bunch of unnecessary information.&lt;/P&gt;

&lt;P&gt;I don't need to see all of this:&lt;/P&gt;

&lt;P&gt;Message=&lt;STRONG&gt;Spyware/Grayware: HackTool.VBS.InviBat.&lt;/STRONG&gt;AComputer: PATELS-E7470Domain: Adgrouping\Corp.root.ipc.com\Na\Myhnj\Workstations\WINDOWS 7\Date/Time: 8/7/2019 12:04:21Result: Further action required&lt;/P&gt;

&lt;P&gt;I just want to see this part:&lt;/P&gt;

&lt;P&gt;Spyware/Grayware: HackTool.VBS.InviBat.&lt;/P&gt;

&lt;P&gt;From there I can orient the data but the parsing part is causing me the issue. I was just attempting to provide an entire picture of the end goal. &lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 16:32:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Pulling-data-from-message-field/m-p/439609#M5880</guid>
      <dc:creator>Hegemon76</dc:creator>
      <dc:date>2019-08-08T16:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Enterprise Security: Pulling data from message field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Pulling-data-from-message-field/m-p/439610#M5881</link>
      <description>&lt;P&gt;Try this -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval message="Spyware/Grayware: HackTool.VBS.InviBat. AComputer: PATELS-E7470Domain: Adgrouping\Corp.root.ipc.com\Na\Myhnj\Workstations\WINDOWS 7\Date/Time: 8/7/2019 12:04:21Result: Further action required"
| rex field=message "(?&amp;lt;threat_type&amp;gt;[^:]*):\s(?&amp;lt;threat_name&amp;gt;[^\s]*)"
| eval threat=threat_type . ": " . threat_name
| table message, threat_type, threat_name, threat
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Aug 2019 05:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Pulling-data-from-message-field/m-p/439610#M5881</guid>
      <dc:creator>jawaharas</dc:creator>
      <dc:date>2019-08-09T05:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Enterprise Security: Pulling data from message field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Pulling-data-from-message-field/m-p/439611#M5882</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;

&lt;P&gt;I reached out to a buddy of mine after attempting to utilize the regex extractor/delimitor to no avail and he came up with something very similar.&lt;/P&gt;

&lt;P&gt;Message=(?[^:]+):\s(?[^\s]+)&lt;/P&gt;

&lt;P&gt;I'm going to use that regex helper online and figure out regex at this point. Makes life easier obviously....&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 13:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Pulling-data-from-message-field/m-p/439611#M5882</guid>
      <dc:creator>Hegemon76</dc:creator>
      <dc:date>2019-08-09T13:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Enterprise Security: Pulling data from message field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Pulling-data-from-message-field/m-p/439612#M5883</link>
      <description>&lt;P&gt;Nice. Some cool Splunk recommended RegEx tools can be referred here.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://wiki.splunk.com/Community:RegexTestingTools"&gt;https://wiki.splunk.com/Community:RegexTestingTools&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2019 10:13:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-Enterprise-Security-Pulling-data-from-message-field/m-p/439612#M5883</guid>
      <dc:creator>jawaharas</dc:creator>
      <dc:date>2019-08-10T10:13:45Z</dc:date>
    </item>
  </channel>
</rss>

