<?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 do i extract my field using rex; in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295471#M3719</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;How do i extract my field using rex;&lt;/P&gt;

&lt;P&gt;Below is the sample log:&lt;BR /&gt;
"{"xxxx":{"zzzz":"405","statusMessage":"Added","zzzzzzz":false}}", &lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2017 13:41:49 GMT</pubDate>
    <dc:creator>Gaya852635</dc:creator>
    <dc:date>2017-10-12T13:41:49Z</dc:date>
    <item>
      <title>How do i extract my field using rex;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295471#M3719</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;How do i extract my field using rex;&lt;/P&gt;

&lt;P&gt;Below is the sample log:&lt;BR /&gt;
"{"xxxx":{"zzzz":"405","statusMessage":"Added","zzzzzzz":false}}", &lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 13:41:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295471#M3719</guid>
      <dc:creator>Gaya852635</dc:creator>
      <dc:date>2017-10-12T13:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do i extract my field using rex;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295472#M3720</link>
      <description>&lt;P&gt;Which field are you trying to pull out?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 14:21:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295472#M3720</guid>
      <dc:creator>jodyfsu</dc:creator>
      <dc:date>2017-10-12T14:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do i extract my field using rex;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295473#M3721</link>
      <description>&lt;P&gt;This is the fieldname:OP_FRM_SRC_SYS&lt;/P&gt;

&lt;P&gt;OP_FRM_SRC_SYS="{"xxxx":{"zzzz":"405","statusMessage":"Added","zzzzzzz":false}}", &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:09:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295473#M3721</guid>
      <dc:creator>Gaya852635</dc:creator>
      <dc:date>2020-09-29T16:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do i extract my field using rex;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295474#M3722</link>
      <description>&lt;P&gt;I am a little confused so please help me understand. So this is in the log:&lt;BR /&gt;
"{"xxxx":{"zzzz":"405","statusMessage":"Added","zzzzzzz":false}}"..... right?&lt;/P&gt;

&lt;P&gt;Which field in the log are you trying to pull out? And are you wanting it named OP_FRM_SRC_SYS.&lt;/P&gt;

&lt;P&gt;Please let me know what I am not following.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:09:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295474#M3722</guid>
      <dc:creator>jodyfsu</dc:creator>
      <dc:date>2020-09-29T16:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do i extract my field using rex;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295475#M3723</link>
      <description>&lt;P&gt;complete field "{"xxxx":{"zzzz":"405","statusMessage":"Added","zzzzzzz":false}}"as a fieldvalue into the fieldname OP_FRM_SRC_SYS.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:09:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295475#M3723</guid>
      <dc:creator>Gaya852635</dc:creator>
      <dc:date>2020-09-29T16:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do i extract my field using rex;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295476#M3724</link>
      <description>&lt;P&gt;Ah, ok.. I will see if I can figure this out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 14:45:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295476#M3724</guid>
      <dc:creator>jodyfsu</dc:creator>
      <dc:date>2017-10-12T14:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do i extract my field using rex;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295477#M3725</link>
      <description>&lt;P&gt;@Gaya852635&lt;/P&gt;

&lt;P&gt;try this in props.conf&lt;/P&gt;

&lt;P&gt;[json_embedded]&lt;BR /&gt;
REGEX = "(\w+)"."(\S+?)"&lt;BR /&gt;
FORMAT = $1::$2&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 14:55:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295477#M3725</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2017-10-12T14:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do i extract my field using rex;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295478#M3726</link>
      <description>&lt;P&gt;So you want to extract &lt;CODE&gt;"{"xxxx":{"zzzz":"405","statusMessage":"Added","zzzzzzz":false}}",&lt;/CODE&gt; from your log and name it &lt;CODE&gt;OP_FRM_SRC_SYS&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;Can you provide . larger sample size of characters/test before and after the field you want to extract?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 14:58:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295478#M3726</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-10-12T14:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do i extract my field using rex;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295479#M3727</link>
      <description>&lt;P&gt;Here is what I came up with:&lt;BR /&gt;
| rex (^{{1}"{1}(?\w{4})"{1}:{1}{{1}"{1}(?\w{4})"{1}:{1}"{1}(?\d{3})"{1},{1}"{1}(?\w*)"{1}:{1}"{1}(?\w*)"{1},{1}"{1}(?\w*)"{1}:{1}(?\w*)}{2})&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:09:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295479#M3727</guid>
      <dc:creator>jodyfsu</dc:creator>
      <dc:date>2020-09-29T16:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do i extract my field using rex;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295480#M3728</link>
      <description>&lt;P&gt;Looks like some was escaped out:&lt;BR /&gt;
"| rex (^{{1}"{1}(?\w{4})"{1}:{1}{{1}"{1}(?\w{4})"{1}:{1}"{1}(?\d{3})"{1},{1}"{1}(?\w*)"{1}:{1}"{1}(?\w*)"{1},{1}"{1}(?\w*)"{1}:{1}(?\w*)}{2})"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:09:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295480#M3728</guid>
      <dc:creator>jodyfsu</dc:creator>
      <dc:date>2020-09-29T16:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do i extract my field using rex;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295481#M3729</link>
      <description>&lt;P&gt;my named capture groups keep getting dropped when I post.&lt;BR /&gt;
| rex (^{{1}"{1}(?named capture group\w{4})"{1}:{1}{{1}"{1}(?named capture group\w{4})"{1}:{1}"{1}(?named capture group\d{3})"{1},{1}"{1}(?named capture group\w*)"{1}:{1}"{1}(?named capture group\w*)"{1},{1}"{1}(?named capture group\w*)"{1}:{1}(?named capture group\w*)}{2}&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:09:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295481#M3729</guid>
      <dc:creator>jodyfsu</dc:creator>
      <dc:date>2020-09-29T16:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do i extract my field using rex;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295482#M3730</link>
      <description>&lt;P&gt;This doesn't capture anything and also seems overkill.. I would suggest adding sample data before and after that you want to extract and one of us will give you a much cleaner regex &lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 15:23:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295482#M3730</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-10-12T15:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do i extract my field using rex;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295483#M3731</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;"| rex (^{{1}"{1}(?&amp;lt;f1&amp;gt;\w{4})"{1}:{1}{{1}"{1}(?&amp;lt;f2&amp;gt;\w{4})"{1}:{1}"{1}(?&amp;lt;f3&amp;gt;\d{3})"{1},{1}"{1}(?&amp;lt;f4&amp;gt;\w*)"{1}:{1}"{1}(?&amp;lt;f5&amp;gt;\w*)"{1},{1}"{1}(?&amp;lt;f6&amp;gt;\w*)"{1}:{1}(?&amp;lt;f7&amp;gt;\w*)}{2})"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Oct 2017 15:31:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295483#M3731</guid>
      <dc:creator>jodyfsu</dc:creator>
      <dc:date>2017-10-12T15:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do i extract my field using rex;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295484#M3732</link>
      <description>&lt;P&gt;@jodyfsu - you can mark your code using any of three strategies, to avoid html-like items being stripped out or interpreted as formatting.&lt;/P&gt;

&lt;P&gt;1) For any amount of text, highlight the text and press the "mark code" button (101 010).  that button works better for me on Chrome.&lt;/P&gt;

&lt;P&gt;2) For lots of code text, put at least four spaces in front of the first non-whitespace character on each line.  Make sure there is at least one completely empty line before the first code line.&lt;/P&gt;

&lt;P&gt;3) For small pieces of code, use backticks (also called grave accents) before and after the code.  That character (&lt;CODE&gt;) is found under the tilde&lt;/CODE&gt;~&lt;CODE&gt;to the left of the&lt;/CODE&gt;1` on an American keyboard. &lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 15:33:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295484#M3732</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-10-12T15:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do i extract my field using rex;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295485#M3733</link>
      <description>&lt;P&gt;Thank you. &lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 15:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-i-extract-my-field-using-rex/m-p/295485#M3733</guid>
      <dc:creator>jodyfsu</dc:creator>
      <dc:date>2017-10-12T15:47:41Z</dc:date>
    </item>
  </channel>
</rss>

