<?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 to extract values from all fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-all-fields/m-p/337650#M163263</link>
    <description>&lt;P&gt;Hi Team,&lt;BR /&gt;
I want to extract the values like left side(LABEL on of the fileds) all fields and values should take from all the logs.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LABEL = SRC_RSTRT , SRC_RSTRS, GBLRESRM_MONITOR_TI
LABEL:          SRC_RSTRT
IDENTIFIER:     CB4A951F

Date/Time:       Fri Sep 29 16:20:02 EDT 2017
Sequence Number: 192161
Machine Id:      00F9FFDD4C00
Node Id:         nc006qad02
Class:           S
Type:            INFO
WPAR:            Global
Resource Name:   SRC             

LABEL:          SRC_RSTRS
IDENTIFIER:     CB4A951F

Date/Time:       Wed Sep 27 06:51:00 EDT 2017
Sequence Number: 192160
Machine Id:      00F9FFDD4C00
Node Id:         nc006qad02
Class:           S
Type:            INFO
WPAR:            Global
Resource Name:   SRC 
LABEL:          GBLRESRM_MONITOR_TI
IDENTIFIER:     87EB4A70

Date/Time:       Mon Sep 25 02:21:03 EDT 2017
Sequence Number: 192159
Machine Id:      00F9FFDD4C00
Node Id:         nc006qad02
Class:           O
Type:            PERM
WPAR:            Global
Resource Name:   GblResRM
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Jan 2018 11:14:09 GMT</pubDate>
    <dc:creator>senthamilselvan</dc:creator>
    <dc:date>2018-01-29T11:14:09Z</dc:date>
    <item>
      <title>How to extract values from all fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-all-fields/m-p/337650#M163263</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;
I want to extract the values like left side(LABEL on of the fileds) all fields and values should take from all the logs.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LABEL = SRC_RSTRT , SRC_RSTRS, GBLRESRM_MONITOR_TI
LABEL:          SRC_RSTRT
IDENTIFIER:     CB4A951F

Date/Time:       Fri Sep 29 16:20:02 EDT 2017
Sequence Number: 192161
Machine Id:      00F9FFDD4C00
Node Id:         nc006qad02
Class:           S
Type:            INFO
WPAR:            Global
Resource Name:   SRC             

LABEL:          SRC_RSTRS
IDENTIFIER:     CB4A951F

Date/Time:       Wed Sep 27 06:51:00 EDT 2017
Sequence Number: 192160
Machine Id:      00F9FFDD4C00
Node Id:         nc006qad02
Class:           S
Type:            INFO
WPAR:            Global
Resource Name:   SRC 
LABEL:          GBLRESRM_MONITOR_TI
IDENTIFIER:     87EB4A70

Date/Time:       Mon Sep 25 02:21:03 EDT 2017
Sequence Number: 192159
Machine Id:      00F9FFDD4C00
Node Id:         nc006qad02
Class:           O
Type:            PERM
WPAR:            Global
Resource Name:   GblResRM
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2018 11:14:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-all-fields/m-p/337650#M163263</guid>
      <dc:creator>senthamilselvan</dc:creator>
      <dc:date>2018-01-29T11:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract values from all fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-all-fields/m-p/337651#M163264</link>
      <description>&lt;P&gt;hey try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt;|rex field=_raw "LABEL:\s(?&amp;lt;LABEL&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Try this run anywhere search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults|eval raw="LABEL: SRC_RSTRT
IDENTIFIER: CB4A951F
Date/Time: Fri Sep 29 16:20:02 EDT 2017
Sequence Number: 192161
Machine Id: 00F9FFDD4C00
Node Id: nc006qad02
Class: S
Type: INFO
WPAR: Global
Resource Name: SRC "|rex field=raw "LABEL:\s(?&amp;lt;LABEL&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 11:21:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-all-fields/m-p/337651#M163264</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-29T11:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract values from all fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-all-fields/m-p/337652#M163265</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;
I tried the below search query but still field is not created &lt;BR /&gt;
index=test sourcetype=errorlog |rex field=raw "LABEL:\s(?\w+)"&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 12:18:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-all-fields/m-p/337652#M163265</guid>
      <dc:creator>senthamilselvan</dc:creator>
      <dc:date>2018-01-29T12:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract values from all fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-all-fields/m-p/337653#M163266</link>
      <description>&lt;P&gt;instead of &lt;CODE&gt;raw&lt;/CODE&gt; write &lt;CODE&gt;_raw&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 12:22:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-all-fields/m-p/337653#M163266</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-29T12:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract values from all fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-all-fields/m-p/337654#M163267</link>
      <description>&lt;P&gt;same error for that also.&lt;BR /&gt;
index=test sourcetype=errorlog |rex field=_raw "LABEL:\s(?\w+)"&lt;/P&gt;

&lt;P&gt;Error in 'rex' command: Encountered the following error while compiling the regex 'LABEL:\s(?\w+)': Regex: unrecognized character after (? or (?-&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 12:46:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-all-fields/m-p/337654#M163267</guid>
      <dc:creator>senthamilselvan</dc:creator>
      <dc:date>2018-01-29T12:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract values from all fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-all-fields/m-p/337655#M163268</link>
      <description>&lt;P&gt;hey have you tried this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=test sourcetype=errorlog |rex field=_raw "LABEL:\s(?&amp;lt;LABEL&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2018 12:55:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values-from-all-fields/m-p/337655#M163268</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-29T12:55:59Z</dc:date>
    </item>
  </channel>
</rss>

