<?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 break an incoming event into searchable fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-an-incoming-event-into-searchable-fields/m-p/115323#M30555</link>
    <description>&lt;P&gt;The field names (INCATOT to MIDFAIL) are fixed.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Sep 2014 15:11:33 GMT</pubDate>
    <dc:creator>lennys26</dc:creator>
    <dc:date>2014-09-08T15:11:33Z</dc:date>
    <item>
      <title>How to break an incoming event into searchable fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-an-incoming-event-into-searchable-fields/m-p/115320#M30552</link>
      <description>&lt;P&gt;I am struggling to figure out how to break an incoming event into [searchable] fields and am hoping someone could point me in the right direction.&lt;/P&gt;

&lt;P&gt;See my data below which is received as you see it and without an index line, per se.  I have been reading the online docs, answers, investigating props.conf and playing with regex to pull out the data fields, but am not getting anywhere.  Can someone assist?&lt;/P&gt;

&lt;P&gt;The fields that I want to utilze are from "INCATOT" through "MIDFAIL" and the corresponding values are "31614" through "0", however initially I could work with a smaller set of fields.  I presume that I could use the "INCATOT" -&amp;gt; "MIDFAIL" text as the log index, but I really could use some assistance here.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;AMSTNLA201A CM           OMPR201 SEP08 15:16:04 3202 INFO OM REPORT 
    CLASS:   LCR_OM
    START:2014/09/08 15:00:00 MON; STOP: 2014/09/08 15:15:00 MON;
    SLOWSAMPLES:         9 ; FASTSAMPLES:         90 ;

    TRK
          KEY (COMMON_LANGUAGE_NAME)
          INFO (OM2TRKINFO)
             INCATOT   PRERTEAB     INFAIL    NATTMPT   NOVFLATB      GLARE    OUTFAIL    DEFLDCA       DREU       PREU
                 TRU        SBU        MBU   OUTMTCHF    CONNECT     TANDEM        AOF        ANF       TOTU     ANSWER
             ACCCONG   NOANSWER   INANSWER    OUTANSU     INANSU    MIDFAIL

         --------------------------------------------------------------------------------------------------------------
               31614         31         84      35822       1351          4         16          0          0          0
              116631          0        397          0      34402      34255          0          0     117028      26421
                   0          0          0          0          0          0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Sep 2014 14:40:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-an-incoming-event-into-searchable-fields/m-p/115320#M30552</guid>
      <dc:creator>lennys26</dc:creator>
      <dc:date>2014-09-08T14:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to break an incoming event into searchable fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-an-incoming-event-into-searchable-fields/m-p/115321#M30553</link>
      <description>&lt;P&gt;Is the sequence of your field names (INCATOT to MIDFAIL) fixed? Or can it change from event to event?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 14:52:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-an-incoming-event-into-searchable-fields/m-p/115321#M30553</guid>
      <dc:creator>tom_frotscher</dc:creator>
      <dc:date>2014-09-08T14:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to break an incoming event into searchable fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-an-incoming-event-into-searchable-fields/m-p/115322#M30554</link>
      <description>&lt;P&gt;you can do like this.&lt;BR /&gt;
1)if your events are having fixed INCATOT to MIDFAIL then break your event starting from INCATOT&lt;BR /&gt;
2)if your events are not having then break events starting from digit newline then word&lt;/P&gt;

&lt;P&gt;Then you can extract fields by using regex.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 15:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-an-incoming-event-into-searchable-fields/m-p/115322#M30554</guid>
      <dc:creator>kml_uvce</dc:creator>
      <dc:date>2014-09-08T15:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to break an incoming event into searchable fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-an-incoming-event-into-searchable-fields/m-p/115323#M30555</link>
      <description>&lt;P&gt;The field names (INCATOT to MIDFAIL) are fixed.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 15:11:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-an-incoming-event-into-searchable-fields/m-p/115323#M30555</guid>
      <dc:creator>lennys26</dc:creator>
      <dc:date>2014-09-08T15:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to break an incoming event into searchable fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-an-incoming-event-into-searchable-fields/m-p/115324#M30556</link>
      <description>&lt;P&gt;This will do the trick:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [\n\r].*--\s*(?&amp;lt;INCATOT&amp;gt;[0-9]*)\s*(?&amp;lt;PRERTEAB&amp;gt;[0-9]*)\s*(?&amp;lt;INFAIL&amp;gt;[0-9]*)\s*(?&amp;lt;NATTMPT&amp;gt;[0-9]*)\s*(?&amp;lt;NOVFLATB&amp;gt;[0-9]*)\s*([0-9]*)\s*([0-9]*)\s*([0-9]*)\s*([0-9]*)\s*([0-9]*)\s*([0-9]*)\s*([0-9]*)\s*([0-9]*)\s*([0-9]*)\s*([0-9]*)\s*([0-9]*)\s*([0-9]*)\s*([0-9]*)\s*([0-9]*)\s*([0-9]*)\s*([0-9]*)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Sep 2014 12:15:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-an-incoming-event-into-searchable-fields/m-p/115324#M30556</guid>
      <dc:creator>HansK</dc:creator>
      <dc:date>2014-09-19T12:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to break an incoming event into searchable fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-an-incoming-event-into-searchable-fields/m-p/115325#M30557</link>
      <description>&lt;P&gt;I just wanted to post what I have ended up using as the solution.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "-+[^\\d]+(?&amp;lt;INCATOT&amp;gt;[^ ]+)\\s+(?&amp;lt;PRERTEAB&amp;gt;[^ ]+)\\s+(?&amp;lt;INFAIL&amp;gt;[^ ]+)\\s+(?&amp;lt;NATTMPT&amp;gt;[^ ]+)\\s+(?&amp;lt;NOVFLATB&amp;gt;[^ ]+)\\s+(?&amp;lt;GLARE&amp;gt;[^ ]+)\\s+(?&amp;lt;OUTFAIL&amp;gt;[^ ]+)\\s+(?&amp;lt;DEFLDCA&amp;gt;[^ ]+)\\s+(?&amp;lt;DREU&amp;gt;[^ ]+)\\s+(?&amp;lt;PREU&amp;gt;[^ ]+)\\s+(?&amp;lt;TRU&amp;gt;[^ ]+)\\s+(?&amp;lt;SBU&amp;gt;[^ ]+)\\s+(?&amp;lt;MBU&amp;gt;[^ ]+)\\s+(?&amp;lt;OUTMTCHF&amp;gt;[^ ]+)\\s+(?&amp;lt;CONNECT&amp;gt;[^ ]+)\\s+(?&amp;lt;TANDEM&amp;gt;[^ ]+)\\s+(?&amp;lt;AOF&amp;gt;[^ ]+)\\s+(?&amp;lt;ANF&amp;gt;[^ ]+)\\s+(?&amp;lt;TOTU&amp;gt;[^ ]+)\\s+(?&amp;lt;ANSWER&amp;gt;[^ ]+)\\s+(?&amp;lt;ACCCONG&amp;gt;[^ ]+)\\s+(?&amp;lt;NOANSWER&amp;gt;[^ ]+)\\s+(?&amp;lt;INANSWER&amp;gt;[^ ]+)\\s+(?&amp;lt;OUTANSU&amp;gt;[^ ]+)\\s+(?&amp;lt;INANSU&amp;gt;[^ ]+)\\s+(?&amp;lt;MIDFAIL&amp;gt;[^ ]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Oct 2014 20:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-an-incoming-event-into-searchable-fields/m-p/115325#M30557</guid>
      <dc:creator>lennys26</dc:creator>
      <dc:date>2014-10-30T20:54:34Z</dc:date>
    </item>
  </channel>
</rss>

