<?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: Field Extraction with square brackets in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Field-Extraction-with-square-brackets/m-p/550803#M9854</link>
    <description>&lt;P&gt;What exactly do you want to extract from that event?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2021 12:29:04 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-05-07T12:29:04Z</dc:date>
    <item>
      <title>Field Extraction with square brackets</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Field-Extraction-with-square-brackets/m-p/550793#M9853</link>
      <description>&lt;P&gt;I'm trying to parse the below sample using Delimiters, could anyone help with the extraction. Delimiters doesn't work for this. Can someone help with Regex commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[2021-05-07T20:54:50.6222+10:00] [BDF] [ERROR:32] [BD99999] [security2] [client_id: 10.10.18.236] [host_id: google.com ] [host_addr: 10.10.05.11] [pid: 5397] [tid: 139783720359680] [user: apaapp] [ecid: 005kRh1ly^x8dpK_yTk3yW0001K80002jb] [rid: 0] [VirtualHost: google:4445] [client 0.10.18.236] ModSecurity: Warning. Pattern match "^[\\\\d.:]+$" at REQUEST_HEADERS:Host. [file "/apps/vbgrt/bdf/Google/Middleware/user_projects/domains/bdf_domain/config/fmwconfig/components/BDF/instances/bcp/crs-rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "735"] [id "920350"] [msg "Host header is a numeric IP address"] [data"10.10.05.11:4445"] [severity "WARNING"] [ver "OWASP_PQR/3.3.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "paranoia-level/1"] [tag "OWASP_PQR"] [tag "capec/1000/210/272"] [tag "PCI/6.5.10"] [hostname "google"] [uri "/"] [unique_id "HTjues090uwmX0Cz1kLVwAAAIw"]&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 11:28:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Field-Extraction-with-square-brackets/m-p/550793#M9853</guid>
      <dc:creator>shreya1770</dc:creator>
      <dc:date>2021-05-07T11:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction with square brackets</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Field-Extraction-with-square-brackets/m-p/550803#M9854</link>
      <description>&lt;P&gt;What exactly do you want to extract from that event?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 12:29:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Field-Extraction-with-square-brackets/m-p/550803#M9854</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-05-07T12:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction with square brackets</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Field-Extraction-with-square-brackets/m-p/550813#M9855</link>
      <description>&lt;LI-CODE lang="markup"&gt;rex max_match=0 "\[(?&amp;lt;field&amp;gt;[^\]]+)\]"&lt;/LI-CODE&gt;&lt;P&gt;However, you have [ and ] inside a quoted string which may not be what you want, but would be trickier to avoid and perhaps might be just easier to accept and deal with separately.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 12:53:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Field-Extraction-with-square-brackets/m-p/550813#M9855</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-07T12:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction with square brackets</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Field-Extraction-with-square-brackets/m-p/550880#M9856</link>
      <description>&lt;P&gt;^ that is roughly how I would write the extractions as well. I don't like delimiters, I would punch the sample data into regex101 and write an extraction out where each capture group is everything inside the bracket&lt;BR /&gt;example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;\[BDF\]\s\[(?&amp;lt;error_code&amp;gt;[^\]]+)\]\s\[(?&amp;lt;field2&amp;gt;[^\]]+)\]\s\[(?&amp;lt;field3&amp;gt;[^\]]+)\]&lt;/LI-CODE&gt;&lt;P&gt;Just repeat the pattern until finished.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 17:19:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Field-Extraction-with-square-brackets/m-p/550880#M9856</guid>
      <dc:creator>erika_horton</dc:creator>
      <dc:date>2021-05-07T17:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction with square brackets</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Field-Extraction-with-square-brackets/m-p/550962#M9857</link>
      <description>&lt;P&gt;Need to extract the&amp;nbsp; data like uri, unique id and many more. Mostly those are enclosed with [&amp;nbsp; ]&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 13:41:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Field-Extraction-with-square-brackets/m-p/550962#M9857</guid>
      <dc:creator>shreya1770</dc:creator>
      <dc:date>2021-05-08T13:41:28Z</dc:date>
    </item>
  </channel>
</rss>

