<?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: How to parse a field to use later in a table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-a-field-to-use-later-in-a-table/m-p/499423#M139095</link>
    <description>&lt;P&gt;So basically, I am looking for help in filling in something like:&lt;BR /&gt;
|  rex field=FunctionArn   .......................................&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2020 01:12:26 GMT</pubDate>
    <dc:creator>petersonjared</dc:creator>
    <dc:date>2020-01-31T01:12:26Z</dc:date>
    <item>
      <title>How to parse a field to use later in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-a-field-to-use-later-in-a-table/m-p/499422#M139094</link>
      <description>&lt;P&gt;Can someone please help me parse the field of FunctionArn for the account id value ( "65123456723" in the example)  from the within a search that I can use to pass to a lookup to get the "friendly" account name of that account id?&lt;/P&gt;

&lt;P&gt;....&lt;BR /&gt;
   FunctionArn: arn:aws:lambda:us-east-1:65123456723:function:blah-renew-this-today&lt;BR /&gt;
....&lt;/P&gt;

&lt;P&gt;thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 01:10:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-a-field-to-use-later-in-a-table/m-p/499422#M139094</guid>
      <dc:creator>petersonjared</dc:creator>
      <dc:date>2020-01-31T01:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a field to use later in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-a-field-to-use-later-in-a-table/m-p/499423#M139095</link>
      <description>&lt;P&gt;So basically, I am looking for help in filling in something like:&lt;BR /&gt;
|  rex field=FunctionArn   .......................................&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 01:12:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-a-field-to-use-later-in-a-table/m-p/499423#M139095</guid>
      <dc:creator>petersonjared</dc:creator>
      <dc:date>2020-01-31T01:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a field to use later in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-a-field-to-use-later-in-a-table/m-p/499424#M139096</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Check this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval test="FunctionArn: arn:aws:lambda:us-east-1:65123456723:function:blah-renew-this-today" 
| eval temp=split(test,":") 
| eval accountid = mvindex(temp,5) 
| table accountid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval test="FunctionArn: arn:aws:lambda:us-east-1:65123456723:function:blah-renew-this-today" 
| rex field=test "FunctionArn:\s+\S+\:(?P&amp;lt;accountid&amp;gt;[[:digit:]]+)\:"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jan 2020 03:23:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-a-field-to-use-later-in-a-table/m-p/499424#M139096</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2020-01-31T03:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a field to use later in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-a-field-to-use-later-in-a-table/m-p/499425#M139097</link>
      <description>&lt;P&gt;&lt;CODE&gt;[[:digit:]]&lt;/CODE&gt;, cool.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 09:07:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-a-field-to-use-later-in-a-table/m-p/499425#M139097</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-31T09:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a field to use later in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-a-field-to-use-later-in-a-table/m-p/499426#M139098</link>
      <description>&lt;P&gt;This is fanastic, thank you! I am glad to learn about makeresults.&lt;/P&gt;

&lt;P&gt;Is there a way to have makeresult, or a different means, to have the "test" value able to run through the Splunk regex generation tool within extracting fields?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 16:08:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-a-field-to-use-later-in-a-table/m-p/499426#M139098</guid>
      <dc:creator>petersonjared</dc:creator>
      <dc:date>2020-01-31T16:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a field to use later in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-a-field-to-use-later-in-a-table/m-p/499427#M139099</link>
      <description>&lt;P&gt;Equivalent to &lt;CODE&gt;\d&lt;/CODE&gt; or &lt;CODE&gt;[0-9]&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 18:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-a-field-to-use-later-in-a-table/m-p/499427#M139099</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2020-01-31T18:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a field to use later in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-a-field-to-use-later-in-a-table/m-p/499428#M139100</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="FunctionArn: arn:aws:lambda:us-east-1:65123456723:function:blah-renew-this-today" 
| rex "FunctionArn:\s+\S+\:(?P&amp;lt;accountid&amp;gt;\d+)\:" 
| appendpipe 
    [ eval accountid1=mvindex(split(_raw,":"),5) 
    | appendpipe 
        [ eval accountid2=replace(_raw,"^.*(\d{11}).*$","\1") 
        | appendpipe 
            [ rex "(?&amp;lt;accountid3&amp;gt;\d{11})"]]]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;like that?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 22:40:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-a-field-to-use-later-in-a-table/m-p/499428#M139100</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-31T22:40:51Z</dc:date>
    </item>
  </channel>
</rss>

