<?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 Fields Extraction using RegEx in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Fields-Extraction-using-RegEx/m-p/568322#M198040</link>
    <description>&lt;P&gt;Hi, i want to extract bytes fields (using the bytes values) from this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Sep 23 14:11:52 XXX.XXX.X.XX date=2021-09-23 time=14:11:52.004 device_id=FE-3KET123 log_id=6716781232 type=event subtype=smtp pri=information user=mail ui=mail action=NONE status=N/A session_id="47K0CjSc111111-47K0CjSc111111" msg="to=&amp;lt;XXXXXXXX@hotmail.com&amp;gt;, delay=00:00:04, xdelay=00:00:04, mailer=esmtp, pri=61772, relay=hotmail-com.olc.protection.outlook.com. [XXX.XX.XX.XXX], dsn=2.0.0, stat=Sent (&amp;lt;d97263bhagstbhbhet7c01f54636vfd37@GGP0HSDVVHHA9.XXX.XXX.XXX&amp;gt; [InternalId=32836723661134, Hostname=XXXXXXXXXX.namXXXX.prod.outlook.com] 71422 bytes in 0.303, 229.746 KB/sec Queued mail for delivery -&amp;gt; 250 2.1.5)"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I've already found the regex -&amp;nbsp; &amp;nbsp; (?&amp;lt;bxmt&amp;gt;\d+) bytes&lt;BR /&gt;But it didnt seem to work fine.&lt;BR /&gt;Can anyone help?&lt;/P&gt;</description>
    <pubDate>Fri, 24 Sep 2021 03:11:49 GMT</pubDate>
    <dc:creator>syazwani</dc:creator>
    <dc:date>2021-09-24T03:11:49Z</dc:date>
    <item>
      <title>Fields Extraction using RegEx</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-Extraction-using-RegEx/m-p/568322#M198040</link>
      <description>&lt;P&gt;Hi, i want to extract bytes fields (using the bytes values) from this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Sep 23 14:11:52 XXX.XXX.X.XX date=2021-09-23 time=14:11:52.004 device_id=FE-3KET123 log_id=6716781232 type=event subtype=smtp pri=information user=mail ui=mail action=NONE status=N/A session_id="47K0CjSc111111-47K0CjSc111111" msg="to=&amp;lt;XXXXXXXX@hotmail.com&amp;gt;, delay=00:00:04, xdelay=00:00:04, mailer=esmtp, pri=61772, relay=hotmail-com.olc.protection.outlook.com. [XXX.XX.XX.XXX], dsn=2.0.0, stat=Sent (&amp;lt;d97263bhagstbhbhet7c01f54636vfd37@GGP0HSDVVHHA9.XXX.XXX.XXX&amp;gt; [InternalId=32836723661134, Hostname=XXXXXXXXXX.namXXXX.prod.outlook.com] 71422 bytes in 0.303, 229.746 KB/sec Queued mail for delivery -&amp;gt; 250 2.1.5)"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I've already found the regex -&amp;nbsp; &amp;nbsp; (?&amp;lt;bxmt&amp;gt;\d+) bytes&lt;BR /&gt;But it didnt seem to work fine.&lt;BR /&gt;Can anyone help?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 03:11:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-Extraction-using-RegEx/m-p/568322#M198040</guid>
      <dc:creator>syazwani</dc:creator>
      <dc:date>2021-09-24T03:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Fields Extraction using RegEx</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-Extraction-using-RegEx/m-p/568329#M198044</link>
      <description>&lt;P&gt;It looks OK - how are you using it?&lt;/P&gt;&lt;P&gt;You could try using \s instead of spaces&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;\s(?&amp;lt;bxmt&amp;gt;\d+)\sbytes&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 24 Sep 2021 06:22:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-Extraction-using-RegEx/m-p/568329#M198044</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-24T06:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Fields Extraction using RegEx</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-Extraction-using-RegEx/m-p/568394#M198077</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238134"&gt;@syazwani&lt;/a&gt;&amp;nbsp;Try using the below rex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw "InternalId.*\]\s(?&amp;lt;bxmt&amp;gt;\d+?)\sbytes"&lt;/LI-CODE&gt;&lt;P&gt;Also, If this reply helps you, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 13:56:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-Extraction-using-RegEx/m-p/568394#M198077</guid>
      <dc:creator>ashvinpandey</dc:creator>
      <dc:date>2021-09-24T13:56:53Z</dc:date>
    </item>
  </channel>
</rss>

