<?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: Fields not extracted automatically, in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Fields-not-extracted-automatically/m-p/101389#M26203</link>
    <description>&lt;P&gt;It is interesting that this works well by following the standard procedure (as you have done). For reference and comparison, here is the configuration for this test.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#inputs.conf
[monitor:///answers/7-31-2013/1/data]
disabled = false
index = test
sourcetype = answers-1375288490

#props.conf
[answers-1375288490]
REPORT-r15 = csv_fields_1375288490

#transforms.conf
[csv_fields_1375288490]
DELIMS = ","
FIELDS = c1,c2,c3,c4,c5,c6,c7,c8,c8,c9,c10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is what we see in SplunkWeb.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/Untitled1002.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;At this point, I will venture say there is something not clicking right in your test setup. Can you also post your inputs.conf?&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Assuming that you are &lt;STRONG&gt;_not&lt;/STRONG&gt; able to see the data displayed, the same can be accomplished in the UI with the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="answers-1375288490" | rex "EDT,\s+(?&amp;lt;message&amp;gt;.+)" | rex field=message max_match=0 "(?&amp;lt;c&amp;gt;\w+)(?:,|$)"&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And, these are the results. Note the field "C" is available.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/Untitled1000.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Or, you may also try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="answers-1375288490" | rex "EDT,\s+(?&amp;lt;c&amp;gt;.+)" | makemv delim="," c&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/Untitled1001.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Surely you will agree that your objective is possible in a number of ways. Let's get back to your test and compare.&lt;/P&gt;

&lt;P&gt;--gc&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2013 17:20:33 GMT</pubDate>
    <dc:creator>Gilberto_Castil</dc:creator>
    <dc:date>2013-07-31T17:20:33Z</dc:date>
    <item>
      <title>Fields not extracted automatically,</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-not-extracted-automatically/m-p/101386#M26200</link>
      <description>&lt;P&gt;Hi, I am using splunk 5.0.3 but found fields can't be extracted automatically on the splunk UI. To test, I loaded the sample csv file and use the customized sourcetype test_csv_log defined in props.conf. However, the fields like c1, c2, etc defined in transforms.conf are not auto-discovered by splunk. I am wondering if I miss anything? P.S. I did select verbose mode when doing the search......&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;sample.csv&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;07/19/2013 08:18:16:369 EDT, john,car, note,king,queen
07/19/2013 12:53:16:369 EDT, ws,ed,rf,tg,yh,uj
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test_csv_log]
TZ = 'America/New_York'
NO_BINARY_CHECK = 1
pulldown_type = 1
REPORT-r15 = test_csv_fields
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test_csv_fields]
DELIMS = ","
FIELDS = c1,c2,c3,c4,c5,c6,c7,c8,c8,c9,c10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:23:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-not-extracted-automatically/m-p/101386#M26200</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2020-09-28T14:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Fields not extracted automatically,</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-not-extracted-automatically/m-p/101387#M26201</link>
      <description>&lt;P&gt;you sample csv has variable colum length?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2013 21:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-not-extracted-automatically/m-p/101387#M26201</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-07-19T21:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fields not extracted automatically,</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-not-extracted-automatically/m-p/101388#M26202</link>
      <description>&lt;P&gt;I am having this same issue.  In transforms.conf I have:&lt;BR /&gt;
    [myfield-mv]&lt;BR /&gt;
    REGEX = (?P&lt;MYFIELD&gt;blahblahregex)&lt;BR /&gt;
    MV_ADD = true&lt;BR /&gt;
    SOURCE_KEY = myinputfield&lt;BR /&gt;
...and in props.conf I have:&lt;BR /&gt;
    REPORT-myfield = myfield-mv&lt;BR /&gt;
...but myfield does not appear among the "interesting fields" in searches from the we interface.  However, if I search like this:&lt;BR /&gt;
    * | rex field=myinputfield "(?P&lt;MYFIELD&gt;blahblahregex)"&lt;BR /&gt;
...i &lt;EM&gt;do&lt;/EM&gt; see myfield in the "interesting fields".  Help!&lt;/MYFIELD&gt;&lt;/MYFIELD&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-not-extracted-automatically/m-p/101388#M26202</guid>
      <dc:creator>bcavagnolo</dc:creator>
      <dc:date>2020-09-28T14:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fields not extracted automatically,</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-not-extracted-automatically/m-p/101389#M26203</link>
      <description>&lt;P&gt;It is interesting that this works well by following the standard procedure (as you have done). For reference and comparison, here is the configuration for this test.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#inputs.conf
[monitor:///answers/7-31-2013/1/data]
disabled = false
index = test
sourcetype = answers-1375288490

#props.conf
[answers-1375288490]
REPORT-r15 = csv_fields_1375288490

#transforms.conf
[csv_fields_1375288490]
DELIMS = ","
FIELDS = c1,c2,c3,c4,c5,c6,c7,c8,c8,c9,c10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is what we see in SplunkWeb.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/Untitled1002.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;At this point, I will venture say there is something not clicking right in your test setup. Can you also post your inputs.conf?&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Assuming that you are &lt;STRONG&gt;_not&lt;/STRONG&gt; able to see the data displayed, the same can be accomplished in the UI with the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="answers-1375288490" | rex "EDT,\s+(?&amp;lt;message&amp;gt;.+)" | rex field=message max_match=0 "(?&amp;lt;c&amp;gt;\w+)(?:,|$)"&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And, these are the results. Note the field "C" is available.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/Untitled1000.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Or, you may also try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="answers-1375288490" | rex "EDT,\s+(?&amp;lt;c&amp;gt;.+)" | makemv delim="," c&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/Untitled1001.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Surely you will agree that your objective is possible in a number of ways. Let's get back to your test and compare.&lt;/P&gt;

&lt;P&gt;--gc&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2013 17:20:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-not-extracted-automatically/m-p/101389#M26203</guid>
      <dc:creator>Gilberto_Castil</dc:creator>
      <dc:date>2013-07-31T17:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Fields not extracted automatically,</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-not-extracted-automatically/m-p/101390#M26204</link>
      <description>&lt;P&gt;This is very useful. Thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2013 17:42:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-not-extracted-automatically/m-p/101390#M26204</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2013-07-31T17:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Fields not extracted automatically,</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-not-extracted-automatically/m-p/101391#M26205</link>
      <description>&lt;P&gt;Hey Gilberto.  This problem still persists for me (see my comment under the question with props.conf and transforms.conf snippets).  I am able to see the field when I query for it explicitly in splunk web with rex, but not otherwise.  Note that the log data was all imported with command-line oneshot calls like this:&lt;/P&gt;

&lt;P&gt;splunk add oneshot logfile -index main -sourcetype mysrctype -host myhost&lt;/P&gt;

&lt;P&gt;...so there is not inputs.conf segment.  Can you spot a problem with my configuration that might explain this?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2013 18:57:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-not-extracted-automatically/m-p/101391#M26205</guid>
      <dc:creator>bcavagnolo</dc:creator>
      <dc:date>2013-08-01T18:57:55Z</dc:date>
    </item>
  </channel>
</rss>

