<?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: extract fields not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-fields-not-working/m-p/33100#M7011</link>
    <description>&lt;P&gt;The following regex will find any digit at the end of "EC Level" and 20 dots.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;=EC Level\.{20})\d+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you search for events containing "PATH HAS FAILED" and then use the above regex to extract the needed field, you could use that to send alerts or build graphs.&lt;/P&gt;

&lt;P&gt;Is this what you were looking for?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2013 13:04:57 GMT</pubDate>
    <dc:creator>lcrielaa</dc:creator>
    <dc:date>2013-08-13T13:04:57Z</dc:date>
    <item>
      <title>extract fields not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-fields-not-working/m-p/33099#M7010</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I have an errp log from aix that i want to process and determine on with side of the cluster we had problems.&lt;/P&gt;

&lt;P&gt;The log file extracted:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Date/Time:       Mon Aug 12 12:42:53 CEST 2013
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sequence Number: 383812&lt;BR /&gt;
Machine Id:      xxx&lt;BR /&gt;
Node Id:         xxx&lt;BR /&gt;
Class:           H&lt;BR /&gt;
Type:            PERM&lt;BR /&gt;
WPAR:            Global&lt;BR /&gt;
Resource Name:   hdisk1&lt;BR /&gt;
Resource Class:&lt;BR /&gt;
Resource Type:&lt;BR /&gt;
Location:&lt;BR /&gt;
VPD:&lt;BR /&gt;
        Manufacturer................xxx&lt;BR /&gt;
        Machine Type and Model......xxx&lt;BR /&gt;
        ROS Level and ID............5773&lt;BR /&gt;
        Serial Number...............xxx&lt;BR /&gt;
        Part Number.................xxx&lt;BR /&gt;
        EC Level....................xxx&lt;BR /&gt;
        LIC Node VPD................xxx&lt;BR /&gt;
        Device Specific.(Z0)........xxx&lt;BR /&gt;
        Device Specific.(Z1)........xxx&lt;BR /&gt;
        Device Specific.(Z2)........xxx&lt;BR /&gt;
        Device Specific.(Z3)........xxx&lt;BR /&gt;
        Device Specific.(Z4)........xxx&lt;BR /&gt;
        Device Specific.(Z5)........xxx&lt;BR /&gt;
        Device Specific.(Z6)........xxx&lt;/P&gt;

&lt;P&gt;Description&lt;BR /&gt;
PATH HAS FAILED&lt;/P&gt;

&lt;P&gt;Probable Causes&lt;BR /&gt;
ADAPTER HARDWARE OR CABLE&lt;BR /&gt;
DASD DEVICE&lt;/P&gt;

&lt;P&gt;Failure Causes&lt;BR /&gt;
UNDETERMINED&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    Recommended Actions
    PERFORM PROBLEM DETERMINATION PROCEDURES
    CHECK PATH
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Detail Data&lt;BR /&gt;
PATH ID&lt;BR /&gt;
           1&lt;BR /&gt;
SENSE DATA&lt;BR /&gt;
0600 0000 0000 0004 0000 0000 0000 0000 0000 0000 0000 0000 0200 0500 0000 0000&lt;BR /&gt;
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000&lt;/P&gt;

&lt;P&gt;The line I am interested are these 2&lt;/P&gt;

&lt;P&gt;EC Level....................105283&lt;/P&gt;

&lt;P&gt;EC Level....................105278&lt;/P&gt;

&lt;P&gt;But unfortunatly I can see these lines when I choose Extract Fields&lt;/P&gt;

&lt;P&gt;Date/Time:       Mon Aug 12 12:43:53 CEST 2013&lt;BR /&gt;
Sequence Number: 383782&lt;BR /&gt;
Machine Id:      xxx&lt;BR /&gt;
Node Id:         xxx&lt;BR /&gt;
Class:           H&lt;BR /&gt;
Type:            PERM&lt;BR /&gt;
WPAR:            Global&lt;BR /&gt;
Resource Name:   hdisk18&lt;BR /&gt;
Resource Class:&lt;BR /&gt;
Resource Type:&lt;BR /&gt;
Location:&lt;BR /&gt;
VPD:&lt;BR /&gt;
Manufacturer................xxx&lt;BR /&gt;
Machine Type and Model......xxx&lt;BR /&gt;
ROS Level and ID............5773&lt;/P&gt;

&lt;P&gt;Point is that I want to make a search for "PATH HAS FAILED" and from my field sort by which side of the mirror that failed (105283 OR 105278) and to some graphs.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2013 12:39:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-fields-not-working/m-p/33099#M7010</guid>
      <dc:creator>skjelmose</dc:creator>
      <dc:date>2013-08-13T12:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: extract fields not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-fields-not-working/m-p/33100#M7011</link>
      <description>&lt;P&gt;The following regex will find any digit at the end of "EC Level" and 20 dots.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;=EC Level\.{20})\d+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you search for events containing "PATH HAS FAILED" and then use the above regex to extract the needed field, you could use that to send alerts or build graphs.&lt;/P&gt;

&lt;P&gt;Is this what you were looking for?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2013 13:04:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-fields-not-working/m-p/33100#M7011</guid>
      <dc:creator>lcrielaa</dc:creator>
      <dc:date>2013-08-13T13:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: extract fields not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-fields-not-working/m-p/33101#M7012</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;Well it seems like thats what im looking for but how am i supposed to write it in the search bar:&lt;/P&gt;

&lt;P&gt;index = aix "PATH HAS FAILED" | rex _raw (?&amp;lt;=EC Level.{20})d+ or ????&lt;/P&gt;

&lt;P&gt;Thanks for your help so far greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2013 13:15:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-fields-not-working/m-p/33101#M7012</guid>
      <dc:creator>skjelmose</dc:creator>
      <dc:date>2013-08-13T13:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: extract fields not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-fields-not-working/m-p/33102#M7013</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;
Well it seems like thats what im looking for but how am i supposed to write it in the search bar:&lt;BR /&gt;
index = aix "PATH HAS FAILED" | rex _raw (?&amp;lt;=EC Level.{20})d+ or ????&lt;BR /&gt;
Thanks for your help so far greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2013 13:34:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-fields-not-working/m-p/33102#M7013</guid>
      <dc:creator>skjelmose</dc:creator>
      <dc:date>2013-08-13T13:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: extract fields not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-fields-not-working/m-p/33103#M7014</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;

&lt;P&gt;Am I supposed to write it in the search bar:&lt;BR /&gt;
index = aix "PATH HAS FAILED" | rex _raw (?&amp;lt;=EC Level.{20})d+ or ???? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2013 07:32:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-fields-not-working/m-p/33103#M7014</guid>
      <dc:creator>skjelmose</dc:creator>
      <dc:date>2013-08-15T07:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: extract fields not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-fields-not-working/m-p/33104#M7015</link>
      <description>&lt;P&gt;index=aix "PATH HAS FAILED" | rex field=_raw "(?&amp;lt;=EC Level.{20})(?&lt;EC_LEVEL&gt;\d+)"&lt;/EC_LEVEL&gt;&lt;/P&gt;

&lt;P&gt;This'll give you a field in the fieldpicker called "EC_Level" that'll match the EC Level number. You may have to tweak it.&lt;/P&gt;

&lt;P&gt;If this answer helped you, please accept it.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:34:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-fields-not-working/m-p/33104#M7015</guid>
      <dc:creator>lcrielaa</dc:creator>
      <dc:date>2020-09-28T14:34:55Z</dc:date>
    </item>
  </channel>
</rss>

