<?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: Normalizing IBM log collector data into Splunk fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Normalizing-IBM-log-collector-data-into-Splunk-fields/m-p/309454#M92829</link>
    <description>&lt;P&gt;I'm trying to test the regex extraction as Splunk is not auto extracting the fields.  I need to first regex the timestamp that begin the log in Nov  6 07:51:03 format.&lt;/P&gt;

&lt;P&gt;Then cut and start the next extracted field beginning after [   and extract and create fields for each field=value pair.  Ending at the closing ].&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2017 18:47:18 GMT</pubDate>
    <dc:creator>johnward4</dc:creator>
    <dc:date>2017-08-30T18:47:18Z</dc:date>
    <item>
      <title>Normalizing IBM log collector data into Splunk fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Normalizing-IBM-log-collector-data-into-Splunk-fields/m-p/309452#M92827</link>
      <description>&lt;P&gt;I'm trying to monitor log data that is displayed below, and extract the fields into ones that can be used in Splunk &lt;/P&gt;

&lt;P&gt;Nov  6 07:51:03 S10125BA QAUDJRN: [JS@0 event="JS-Actions that affect jobs" event_type="S-Start" sev="1" actual_type="JS-S" job_type="Subsystem monitor" job_sub_type="No subtype" chg_job="ALLSYL100" chg_user="QSYS" chg_job_no="866512" effective_user="QSYS" jobd_name="" jobd_library="" jobq_name="" jobq_library="" outq_name="*DEV" outq_library="" printer_device="PRT01" library_list="QSYS      QSYS2     QHLPSYS   QUSRSYS   QGPL      QTEMP" eff_group_prf="" supplemental="" jrn_seq="9863803" timestamp="20161106075103429000" job_name="ALLSYL100" user_name="QSYS" job_number="866512" eff_user="QSYS" logical_partition="001" admin_user="yes"]&lt;/P&gt;

&lt;P&gt;The log should begin with JS@O event=     The fields I'm Most interested in are :&lt;/P&gt;

&lt;P&gt;JS@O event&lt;BR /&gt;
event_type&lt;BR /&gt;
actual_type&lt;BR /&gt;
job_type&lt;BR /&gt;
effective_user&lt;BR /&gt;
timestamp&lt;BR /&gt;
job_name&lt;BR /&gt;
job_number&lt;BR /&gt;
admin_user&lt;/P&gt;

&lt;P&gt;I've tried using the Splunk field extractor but have had no luck pulling out the fields I need.  Please help&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Normalizing-IBM-log-collector-data-into-Splunk-fields/m-p/309452#M92827</guid>
      <dc:creator>johnward4</dc:creator>
      <dc:date>2020-09-29T15:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Normalizing IBM log collector data into Splunk fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Normalizing-IBM-log-collector-data-into-Splunk-fields/m-p/309453#M92828</link>
      <description>&lt;P&gt;Hi johnward4,&lt;BR /&gt;
when you have in your logs a pair "field=value" Splunk automatically extract fieds and shows them in Relevant Fields, so you don't need to create a custom extraction using regex.&lt;BR /&gt;
Probably in your case the first field has a wrong name because there is a space between "JS@O" and "event" and because "@" is a special character that cannot be used in field names, but anyway it should be read as "event".&lt;BR /&gt;
If you don't have automatic extraction, you could use regexes like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;JS@0 event\=\"(?&amp;lt;event&amp;gt;[^\"]*)\"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 10:19:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Normalizing-IBM-log-collector-data-into-Splunk-fields/m-p/309453#M92828</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-08-30T10:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Normalizing IBM log collector data into Splunk fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Normalizing-IBM-log-collector-data-into-Splunk-fields/m-p/309454#M92829</link>
      <description>&lt;P&gt;I'm trying to test the regex extraction as Splunk is not auto extracting the fields.  I need to first regex the timestamp that begin the log in Nov  6 07:51:03 format.&lt;/P&gt;

&lt;P&gt;Then cut and start the next extracted field beginning after [   and extract and create fields for each field=value pair.  Ending at the closing ].&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 18:47:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Normalizing-IBM-log-collector-data-into-Splunk-fields/m-p/309454#M92829</guid>
      <dc:creator>johnward4</dc:creator>
      <dc:date>2017-08-30T18:47:18Z</dc:date>
    </item>
  </channel>
</rss>

