<?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: Splunk multiple field extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-multiple-field-extraction/m-p/541108#M153177</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "job:'?(?&amp;lt;job&amp;gt;[^']+)'?,\srun:'?(?&amp;lt;run&amp;gt;\d+)'?"
| rex "code:'(?&amp;lt;code&amp;gt;[^']+)'"
| table job, run, code&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2021 04:46:06 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2021-02-24T04:46:06Z</dc:date>
    <item>
      <title>Splunk multiple field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-multiple-field-extraction/m-p/540517#M152923</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have the below Splunk Event &amp;amp; need to extract multiple fields from the same :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[TIMESTAMP=2021-02-19 12:16:30.684 UTC] [RUN_ID=] [TRACE_ID=] [STEP=End Processing] [LINE_NO=701] [LOG_LEVEL=TRACE] [MESSAGE=[ppv] [insert] Query completed , total 11 ms: [10 values] INSERT INTO errors (job,run,timestamp,count,alert,error,code,message,completets,active) VALUES (?,?,?,?,?,?,?,?,?,?); [job:'endcustomer--prod', run:'4569876', timestamp:1613736990530, count:200, alert:'failed after launch', error:'', code:'E302: Batch failed', message:'', completets:'', active:false]]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Table Output :&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;job&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;run&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;endcustomer--prod&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;4569876&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;E302: Batch failed&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to pick some field like :&lt;/P&gt;&lt;P&gt;run\:\'(?&amp;lt;run&amp;gt;\w+)'&lt;/P&gt;&lt;P&gt;&lt;A href="https://regex101.com/r/q7NqQb/1" target="_blank" rel="noopener"&gt;https://regex101.com/r/q7NqQb/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, unable to extract all the three fields above. Any help is appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 12:42:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-multiple-field-extraction/m-p/540517#M152923</guid>
      <dc:creator>ppatkar</dc:creator>
      <dc:date>2021-02-19T12:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk multiple field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-multiple-field-extraction/m-p/540521#M152925</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/176812"&gt;@ppatkar&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Use rex command twice:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "job:'(?&amp;lt;job&amp;gt;[^']+)',\srun:'(?&amp;lt;run&amp;gt;[^']+)"
| rex "code:'(?&amp;lt;code&amp;gt;[^']+)'"
| table job, run, code&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 12:54:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-multiple-field-extraction/m-p/540521#M152925</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-02-19T12:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk multiple field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-multiple-field-extraction/m-p/540983#M153128</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one followup to the earlier , in certain events I see truncated output like below :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[TIMESTAMP=2021-02-19 12:16:30.684 UTC] [RUN_ID=] [TRACE_ID=] [STEP=End Processing] [LINE_NO=701] [LOG_LEVEL=TRACE] [MESSAGE=[ppv] [insert] Query completed , total 11 ms: [10 values] INSERT INTO errors (job,run,timestamp,count,alert,error,code,message,completets,active) VALUES (?,?,?,?,?,?,?,?,?,?); [job:'endcustomer--pr..[truncated output], run:4569876, timestamp:1613736990530, count:200, alert:'failed after launch', error:'', code:'E302: Batch failed', message:'', completets:'', active:false]]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is causing my job to get derived as null . Can you please advise ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 04:20:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-multiple-field-extraction/m-p/540983#M153128</guid>
      <dc:creator>ppatkar</dc:creator>
      <dc:date>2021-02-24T04:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk multiple field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-multiple-field-extraction/m-p/541108#M153177</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "job:'?(?&amp;lt;job&amp;gt;[^']+)'?,\srun:'?(?&amp;lt;run&amp;gt;\d+)'?"
| rex "code:'(?&amp;lt;code&amp;gt;[^']+)'"
| table job, run, code&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 04:46:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-multiple-field-extraction/m-p/541108#M153177</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-02-24T04:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk multiple field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-multiple-field-extraction/m-p/541143#M153188</link>
      <description>&lt;P&gt;All in on rex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Your search
| rex "job:'(?&amp;lt;job&amp;gt;[^']+)'. run:'(?&amp;lt;run&amp;gt;[^']+)'.*? code:'(?&amp;lt;code&amp;gt;[^']+)'"
| table job run code&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 09:16:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-multiple-field-extraction/m-p/541143#M153188</guid>
      <dc:creator>jotne</dc:creator>
      <dc:date>2021-02-24T09:16:26Z</dc:date>
    </item>
  </channel>
</rss>

