<?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: Rex and Regex Field Extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rex-and-Regex-Field-Extraction/m-p/76497#M19351</link>
    <description>&lt;P&gt;Thank you for your prompt response. I've copied and pasted what you've wrote, but the extracted fields bxmt and brcv do not show up under the selected fields nor interesting fields, so seemingly they have not been extracted. Is there something I'm missing or do I just pipe the additional statements (eval and timechart)?&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2013 19:15:14 GMT</pubDate>
    <dc:creator>mistertj3</dc:creator>
    <dc:date>2013-03-27T19:15:14Z</dc:date>
    <item>
      <title>Rex and Regex Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-and-Regex-Field-Extraction/m-p/76495#M19349</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I am trying to extract fields (tried the dynamic extraction and manual using rex&amp;amp;regex) but am unable to get it just right. My data looks like the following:&lt;/P&gt;

&lt;P&gt;Apr 30 00:48:25 "ip_address" Apr 30 2012 00:48:25: %ASA-4-113019: Group = "Group", &lt;BR /&gt;
Username = "User", IP = "ip_address", &lt;BR /&gt;
Session disconnected. Session Type: SSL, Duration: 1h:59m:24s, Bytes xmt: 86659734, &lt;BR /&gt;
Bytes rcv: 4557700, Reason: User Requested&lt;/P&gt;

&lt;P&gt;I would like to extract the Bytes xmt and Bytes rcv to separate fields (on search time). Then I would like pipe to an eval statement that adds them then another pipe to the timechart. &lt;/P&gt;

&lt;P&gt;I have tried a lot of regex and rex combinations using this site &lt;A href="http://www.regular-expressions.info/reference.html" target="_blank"&gt;regular expression reference&lt;/A&gt; as a ref . But I've only gotten as far as rex field=_raw "Bytes xmt: (?&lt;BYTES transferred=""&gt;.,)" , which only gives the first decimal?&lt;/BYTES&gt;&lt;/P&gt;

&lt;P&gt;I am probably doing this entirely wrong as this is my first expression so any help you can give would be great!&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:37:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-and-Regex-Field-Extraction/m-p/76495#M19349</guid>
      <dc:creator>mistertj3</dc:creator>
      <dc:date>2020-09-28T13:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rex and Regex Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-and-Regex-Field-Extraction/m-p/76496#M19350</link>
      <description>&lt;P&gt;How about&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
rex field=_raw ".*Bytes xmt: (?&amp;lt;bxmt&amp;gt;\d+), Bytes rcv: (?&amp;lt;brcv&amp;gt;\d+),.*"&lt;BR /&gt;
&lt;CODE&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2013 18:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-and-Regex-Field-Extraction/m-p/76496#M19350</guid>
      <dc:creator>lain179</dc:creator>
      <dc:date>2013-03-27T18:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rex and Regex Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-and-Regex-Field-Extraction/m-p/76497#M19351</link>
      <description>&lt;P&gt;Thank you for your prompt response. I've copied and pasted what you've wrote, but the extracted fields bxmt and brcv do not show up under the selected fields nor interesting fields, so seemingly they have not been extracted. Is there something I'm missing or do I just pipe the additional statements (eval and timechart)?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2013 19:15:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-and-Regex-Field-Extraction/m-p/76497#M19351</guid>
      <dc:creator>mistertj3</dc:creator>
      <dc:date>2013-03-27T19:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rex and Regex Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-and-Regex-Field-Extraction/m-p/76498#M19352</link>
      <description>&lt;P&gt;There should be backslashes in front of the d+ characters.  The comment forum doesn't always post them properly.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2013 19:39:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-and-Regex-Field-Extraction/m-p/76498#M19352</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2013-03-27T19:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rex and Regex Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-and-Regex-Field-Extraction/m-p/76499#M19353</link>
      <description>&lt;P&gt;Edited to show the backslashes.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2013 20:25:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-and-Regex-Field-Extraction/m-p/76499#M19353</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-03-27T20:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rex and Regex Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-and-Regex-Field-Extraction/m-p/76500#M19354</link>
      <description>&lt;P&gt;Got it and now have a better understanding of rex&amp;amp;regex. Thank you for all of your help and prompt responses!&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2013 17:58:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-and-Regex-Field-Extraction/m-p/76500#M19354</guid>
      <dc:creator>mistertj3</dc:creator>
      <dc:date>2013-03-30T17:58:43Z</dc:date>
    </item>
  </channel>
</rss>

