<?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: Is it possible to create an event type field within a source type? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-an-event-type-field-within-a-source/m-p/233737#M45558</link>
    <description>&lt;P&gt;Hello @jorell, could you please more info? What i understand is you are looking to create a filed that will hold the INFO,ERROR and WARN values? Is that what you are looking for? &lt;/P&gt;

&lt;P&gt;You can extract fields always using regular expressions and eval:  &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.2/Search/Extractfieldswithsearchcommands"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.2/Search/Extractfieldswithsearchcommands&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Just to give you an idea, i extracted the Value INFO and assigned it to the Key = Level(Log Level)&lt;/P&gt;

&lt;P&gt;|gentimes start=-1|eval Event="2016-06-05T19:55:10,144  INFO LoadProperties:225 - LoadProperty - Initial fetch for properties is successfu"|rex field=Event "\s(?P\w+)\s"&lt;/P&gt;

&lt;P&gt;Please provide more info with an example if this is not even close to what you're looking for.&lt;/P&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2016 19:50:36 GMT</pubDate>
    <dc:creator>Raghav2384</dc:creator>
    <dc:date>2016-08-19T19:50:36Z</dc:date>
    <item>
      <title>Is it possible to create an event type field within a source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-an-event-type-field-within-a-source/m-p/233736#M45557</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I was wondering if it was possible to create a field within the source type that would show the event type.&lt;/P&gt;

&lt;P&gt;Here is a record from my log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016-06-05T19:55:10,144  INFO LoadProperties:225 - LoadProperty - Initial fetch for properties is successful
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to have INFO (and other types, like ERROR, WARN etc) as their own field within the source type.  How can I do this?  I'm new to Splunk and am currently using Splunk Enterprise 6.4.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 19:24:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-an-event-type-field-within-a-source/m-p/233736#M45557</guid>
      <dc:creator>jorell</dc:creator>
      <dc:date>2016-08-19T19:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create an event type field within a source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-an-event-type-field-within-a-source/m-p/233737#M45558</link>
      <description>&lt;P&gt;Hello @jorell, could you please more info? What i understand is you are looking to create a filed that will hold the INFO,ERROR and WARN values? Is that what you are looking for? &lt;/P&gt;

&lt;P&gt;You can extract fields always using regular expressions and eval:  &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.2/Search/Extractfieldswithsearchcommands"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.2/Search/Extractfieldswithsearchcommands&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Just to give you an idea, i extracted the Value INFO and assigned it to the Key = Level(Log Level)&lt;/P&gt;

&lt;P&gt;|gentimes start=-1|eval Event="2016-06-05T19:55:10,144  INFO LoadProperties:225 - LoadProperty - Initial fetch for properties is successfu"|rex field=Event "\s(?P\w+)\s"&lt;/P&gt;

&lt;P&gt;Please provide more info with an example if this is not even close to what you're looking for.&lt;/P&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 19:50:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-an-event-type-field-within-a-source/m-p/233737#M45558</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2016-08-19T19:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create an event type field within a source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-an-event-type-field-within-a-source/m-p/233738#M45559</link>
      <description>&lt;P&gt;Use the field extractions page to extract fields by sourcetype. Here's docs on that. &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/Managesearch-timefieldextractions"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/Managesearch-timefieldextractions&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;Once in IFX, chose to write your own regular expression and enter this. Make sure you set the right permissions, after creating the field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;,\d+\s*(?&amp;lt;type&amp;gt;\w+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;*&lt;STRONG&gt;&lt;EM&gt;OR&lt;/EM&gt;&lt;/STRONG&gt;*&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;type&amp;gt;INFO|WARN|DEBUG|ERROR)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Aug 2016 19:51:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-an-event-type-field-within-a-source/m-p/233738#M45559</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-19T19:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create an event type field within a source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-an-event-type-field-within-a-source/m-p/233739#M45560</link>
      <description>&lt;P&gt;Each Log has a type of warning it is after the timestamp, as you've seen.  I just want to be able to search for anything that is of the ERROR type, or of the WARN time.  So, anyway I can do that will be fine.  There is a comma, a number than the log type, which in my example is INFO.  &lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 20:02:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-an-event-type-field-within-a-source/m-p/233739#M45560</guid>
      <dc:creator>jorell</dc:creator>
      <dc:date>2016-08-19T20:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create an event type field within a source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-an-event-type-field-within-a-source/m-p/233740#M45561</link>
      <description>&lt;P&gt;Thanks for the speedy reply, btw&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 20:02:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-an-event-type-field-within-a-source/m-p/233740#M45561</guid>
      <dc:creator>jorell</dc:creator>
      <dc:date>2016-08-19T20:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create an event type field within a source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-an-event-type-field-within-a-source/m-p/233741#M45562</link>
      <description>&lt;P&gt;np &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Please provide sample events with all possible patterns and we will help you with the dream extraction &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 20:48:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-an-event-type-field-within-a-source/m-p/233741#M45562</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2016-08-19T20:48:04Z</dc:date>
    </item>
  </channel>
</rss>

