<?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 How to extract the field &amp;quot;alert&amp;quot; with the field name action? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622458#M216375</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;how to extract the field "alert" with the field name action.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;help with the regex..&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2022 14:34:09 GMT</pubDate>
    <dc:creator>balu1211</dc:creator>
    <dc:date>2022-12-02T14:34:09Z</dc:date>
    <item>
      <title>How to extract the field "alert" with the field name action?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622458#M216375</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;how to extract the field "alert" with the field name action.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;help with the regex..&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 14:34:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622458#M216375</guid>
      <dc:creator>balu1211</dc:creator>
      <dc:date>2022-12-02T14:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622473#M216385</link>
      <description>&lt;P&gt;Please can you share some anonymised sample log events to clarify what it is you want to extract from where?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 18:06:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622473#M216385</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-29T18:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622482#M216391</link>
      <description>&lt;P&gt;I'm guessing&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "Last Matched Message: \",\"action\":\"(?&amp;lt;action&amp;gt;\w+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Nov 2022 18:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622482#M216391</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-11-29T18:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622484#M216393</link>
      <description>&lt;P&gt;XML&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 18:38:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622484#M216393</guid>
      <dc:creator>balu1211</dc:creator>
      <dc:date>2022-11-29T18:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622485#M216394</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "(?&amp;lt;action&amp;gt;Last Matched Message: \",\"action\"\w+):\"alert\""&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Nov 2022 18:33:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622485#M216394</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-29T18:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622489#M216397</link>
      <description>&lt;P&gt;This one&amp;nbsp; is not working ...&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 18:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622489#M216397</guid>
      <dc:creator>balu1211</dc:creator>
      <dc:date>2022-11-29T18:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622492#M216400</link>
      <description>&lt;P&gt;In what way is it not working?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 18:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622492#M216400</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-29T18:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622494#M216402</link>
      <description>&lt;P&gt;Regex is not matching with the XML log&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 19:02:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622494#M216402</guid>
      <dc:creator>balu1211</dc:creator>
      <dc:date>2022-11-29T19:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622501#M216406</link>
      <description>&lt;P&gt;Please can you share an anonymised sample of the XML log you are trying to extract from?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 19:34:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622501#M216406</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-29T19:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622540#M216420</link>
      <description>&lt;P&gt;&lt;SPAN&gt;format"&lt;/SPAN&gt;&lt;SPAN&gt;:"json","version":"1.0",&lt;/SPAN&gt;&lt;SPAN&gt;ta":&lt;/SPAN&gt;&lt;SPAN&gt;"20829","":"","&lt;/SPAN&gt;&lt;SPAN&gt;selector":"REQUEST_HEADERS:&lt;/SPAN&gt;&lt;SPAN&gt;Content-Length","tag":"ASE/&lt;/SPAN&gt;&lt;SPAN&gt;","id":"&lt;/SPAN&gt;&lt;SPAN&gt;3000180","message":"Partial Request Body Inspection Warning - Request Body is larger than the configured inspection limit","version":"1"},{"data":&lt;/SPAN&gt;&lt;SPAN&gt;"Vector Score: 1000, Group Threshold: 9, Triggered Rules: 3000180, Triggered Scores: 1000, Triggered Selector: REQUEST_HEADERS:Content-&lt;/SPAN&gt;&lt;SPAN&gt;Length, Mitigated Rules: , "selector":&lt;/SPAN&gt;&lt;SPAN&gt;"REQUEST_HEADERS:Content-&lt;/SPAN&gt;&lt;SPAN&gt;L&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 16:34:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622540#M216420</guid>
      <dc:creator>balu1211</dc:creator>
      <dc:date>2022-11-30T16:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622570#M216429</link>
      <description>&lt;P&gt;Sorry, there was an extra \w+ which was unnecessary&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| fields - _time
``` Set up example data ```
| eval _raw="format\":\"json\",\"version\":\"1.0\",\"attackData\":{\"rules\":[{\"data\":\"20829\",\"action\":\"alert\",\"selector\":\"REQUEST_HEADERS:Content-Length\",\"tag\":\"ASE/WEB_ATTACK/POLICY\",\"id\":\"3000180\",\"message\":\"Partial Request Body Inspection Warning - Request Body is larger than the configured inspection limit\",\"version\":\"1\"},{\"data\":\"Vector Score: 1000, Group Threshold: 9, Triggered Rules: 3000180, Triggered Scores: 1000, Triggered Selector: REQUEST_HEADERS:Content-Length, Mitigated Rules: , Last Matched Message: \",\"action\":\"alert\",\"selector\":\"REQUEST_HEADERS:Content-Length\",\"tag\":\"ASE/WEB_ATTACK/POLICY\",\"id\":\"POLICY-"
``` ---------------------- ```

``` rex to extract the values ```
| rex "(?&amp;lt;action&amp;gt;Last Matched Message: \",\"action\"):\"alert\""&lt;/LI-CODE&gt;&lt;P&gt;btw, your example is not XML, it looks more like part of a JSON message&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 08:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622570#M216429</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-30T08:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622609#M216454</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&lt;/LI&gt;&lt;LI&gt;I should get the variables "alert" or "deny " but using the below rex , the result it is showing&lt;BR /&gt;Last Matched Message: ","action"&lt;BR /&gt;| rex "(?&amp;lt;action&amp;gt;Last Matched Message: \",\"action\"):\"alert\""&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 30 Nov 2022 12:04:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622609#M216454</guid>
      <dc:creator>balu1211</dc:creator>
      <dc:date>2022-11-30T12:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622612#M216457</link>
      <description>&lt;P&gt;Where does "deny" come from?&lt;/P&gt;&lt;P&gt;Please provide events showing each of these conditions and how you determine when the "deny" or "alert" field should be populated? (I am assuming by variable you mean field!)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 12:10:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622612#M216457</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-30T12:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622618#M216460</link>
      <description>&lt;P&gt;&amp;lt;&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 03:03:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622618#M216460</guid>
      <dc:creator>balu1211</dc:creator>
      <dc:date>2022-12-01T03:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622624#M216463</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "Last Matched Message: \",\"action\":\"(?&amp;lt;alert&amp;gt;alert)"
| rex "Last Matched Message: \",\"action\":\"(?&amp;lt;deny&amp;gt;deny)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Nov 2022 13:10:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622624#M216463</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-30T13:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622628#M216467</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;is there any scope to get the variable deny/alert we get under one field extraction?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 13:17:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622628#M216467</guid>
      <dc:creator>balu1211</dc:creator>
      <dc:date>2022-11-30T13:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622644#M216471</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "Last Matched Message: \",\"action\":\"(?&amp;lt;alert&amp;gt;alert)|(?&amp;lt;deny&amp;gt;deny)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Nov 2022 14:25:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/622644#M216471</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-30T14:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/623021#M216597</link>
      <description>&lt;P data-unlink="true"&gt;&lt;SPAN&gt;@ &lt;A class="" href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901" target="_self"&gt;&lt;SPAN class=""&gt;yuanliu&lt;/SPAN&gt;&lt;/A&gt; &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;help in extracting the field AKAMAI/WAF/* ( * represents they may be values present followed by AKAMAI/WAF/------) in from "&lt;/SPAN&gt;&lt;SPAN class=""&gt;tag&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;AKAMAI/WAF&lt;/SPAN&gt;/&lt;SPAN class=""&gt;PENALTYBOX&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 12:22:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/623021#M216597</guid>
      <dc:creator>balu1211</dc:creator>
      <dc:date>2022-12-02T12:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/623023#M216598</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "\"tag\":\"AKAMAI\/WAF\/(?&amp;lt;akamai_waf&amp;gt;[^\"]+)\""&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Dec 2022 12:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/623023#M216598</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-12-02T12:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the field extraction and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/623032#M216599</link>
      <description>&lt;P&gt;,............&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 10:55:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-field-quot-alert-quot-with-the-field-name/m-p/623032#M216599</guid>
      <dc:creator>balu1211</dc:creator>
      <dc:date>2022-12-05T10:55:36Z</dc:date>
    </item>
  </channel>
</rss>

