<?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: searchtime field extraction, ignore event prefix in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162266#M45967</link>
    <description>&lt;P&gt;You do not need to restart splunk if your &lt;CODE&gt;props.conf&lt;/CODE&gt; changes are only field extractions. But if you want to explicitly reload the field extractions, you can run this command&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| extract reload=true&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Yes, this search string starts with a &lt;CODE&gt;|&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2013 07:58:16 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2013-12-03T07:58:16Z</dc:date>
    <item>
      <title>searchtime field extraction, ignore event prefix</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162262#M45963</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I'm using props and transforms to extract fields, all the fields are extracted properly, except the first one. &lt;/P&gt;

&lt;P&gt;This is mainly because my transforms is currently:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[extract_fields]
DELIMS = ","
FIELDS = "field1", "field2", "field3", etc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The first line of the event itself is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Dec 2 15:47:55 foo.bar.ie IRL:"field1","field2","field3"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So it extracts Dec 2 15:47:55 foo.bar.ie IRL:"field1" as the first field.&lt;/P&gt;

&lt;P&gt;How would I go about ignoring that first part, so the field extraction starts after IRL:?&lt;/P&gt;

&lt;P&gt;I was looking for some kind of field extraction parameter similar to TIME_PREFIX but for field extractions, but there doesn't seem to be one or I'm just not understanding the docs correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2013 16:34:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162262#M45963</guid>
      <dc:creator>atat23</dc:creator>
      <dc:date>2013-12-02T16:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: searchtime field extraction, ignore event prefix</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162263#M45964</link>
      <description>&lt;P&gt;Alternative using just the props.conf.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[extract_fields]
EXTRACT-fieldval = IRL:(?&amp;lt;field1&amp;gt;.*),(?&amp;lt;field2&amp;gt;.*),(?&amp;lt;field3&amp;gt;.*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;more fields can be added by appending ",(?&lt;FIELDNAME&gt;.*)" in the end. See if this solution is feasible for you.&lt;/FIELDNAME&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2013 18:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162263#M45964</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-12-02T18:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: searchtime field extraction, ignore event prefix</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162264#M45965</link>
      <description>&lt;P&gt;I tired this, both with the field surrounded by quotes and without as that's the way they are in the log, although using this method it doesn't seem to be extracting any fields.&lt;/P&gt;

&lt;P&gt;edit: should also mention, i also tried to name the stanza as [source_log] in props, which is my sourcetype I want this applied to.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2013 19:09:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162264#M45965</guid>
      <dc:creator>atat23</dc:creator>
      <dc:date>2013-12-02T19:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: searchtime field extraction, ignore event prefix</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162265#M45966</link>
      <description>&lt;P&gt;I hope you have restarted your splunk instance after changing the props.conf file. For troubleshooting, you can try running the provided regex in search using "|rex" command. "index=yourindex sourcetyo=pe=source_log | rex \"paste the regex"&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2013 00:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162265#M45966</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-12-03T00:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: searchtime field extraction, ignore event prefix</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162266#M45967</link>
      <description>&lt;P&gt;You do not need to restart splunk if your &lt;CODE&gt;props.conf&lt;/CODE&gt; changes are only field extractions. But if you want to explicitly reload the field extractions, you can run this command&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| extract reload=true&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Yes, this search string starts with a &lt;CODE&gt;|&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2013 07:58:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162266#M45967</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-12-03T07:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: searchtime field extraction, ignore event prefix</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162267#M45968</link>
      <description>&lt;P&gt;Maybe the regex needs to be revised to this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;EXTRACT-fieldval = IRL:(?&amp;lt;field1&amp;gt;.*?),(?&amp;lt;field2&amp;gt;.*?),(?&amp;lt;field3&amp;gt;.*?)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;as the first regex is "greedy" and that sometimes causes problems. Also, this regex assumes that there are no actual quotation marks in the data.&lt;/P&gt;

&lt;P&gt;A final thought: there are rules for field names. A field name can contain only letters, numbers and the underscore character. It must begin with a letter. If your names were violating these rules, that could be a problem. Yes, field names can have special characters in some places if you use quotation marks - but I wouldn't do it.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2013 08:05:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162267#M45968</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-12-03T08:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: searchtime field extraction, ignore event prefix</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162268#M45969</link>
      <description>&lt;P&gt;I was restarting after every change. Using rex the fields seem to extract fine, not in props though, so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "ASM:.(?&amp;lt;field1&amp;gt;[^,]*).,.(?&amp;lt;field2&amp;gt;[^,]*).

props
EXTRACT-fieldval = ASM:.(?&amp;lt;field1&amp;gt;[^,]*).,.(?&amp;lt;field2&amp;gt;[^,]*).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so maybe the problem lies with the fact my fields do have literal quotes around them, and I'm trying to match everything between the quotes.&lt;/P&gt;

&lt;P&gt;Above I match the quotation marks with . instead of matching the literal quotation marks. I also tried the two suggested regexes, work with rex, not props.&lt;/P&gt;

&lt;P&gt;permissions seem to be fine on the files as well.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2013 16:19:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162268#M45969</guid>
      <dc:creator>atat23</dc:creator>
      <dc:date>2013-12-03T16:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: searchtime field extraction, ignore event prefix</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162269#M45970</link>
      <description>&lt;P&gt;so length seems to be an issue (hur hur), I'm trying to extract 35 fields, so the line in props is pretty long.&lt;/P&gt;

&lt;P&gt;When I test it using only the first five fields, it works and extracts these fields as it should.&lt;/P&gt;

&lt;P&gt;Is there a limit to the number of fields to be extracted in props....? am I reaching a character limit meaning the whole line is ignored?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2013 18:33:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searchtime-field-extraction-ignore-event-prefix/m-p/162269#M45970</guid>
      <dc:creator>atat23</dc:creator>
      <dc:date>2013-12-03T18:33:48Z</dc:date>
    </item>
  </channel>
</rss>

