<?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: Can't load my custom fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-load-my-custom-fields/m-p/64641#M12990</link>
    <description>&lt;P&gt;Thank you&lt;BR /&gt;
there is my new props.conf&lt;BR /&gt;
[ces_index_log]&lt;BR /&gt;
EXTRACT-ces_index_log = (?&lt;ID&gt;\d*)|(?&lt;SEVERITY&gt;\w*)|(?&lt;DATE&gt;\d{4}-\d{2}-\d{2})|(?&lt;TIME&gt;\d{2}:\d{2}:\d{2})|(?&lt;DURATION&gt;\d*)|(?&lt;DESCRIPTION&gt;[^|]&lt;EM&gt;)|(?&lt;URI&gt;[^|]&lt;/URI&gt;&lt;/EM&gt;)|(?&lt;OPERATION&gt;[^|]&lt;EM&gt;)|(?&lt;COLLECTION&gt;[^|]&lt;/COLLECTION&gt;&lt;/EM&gt;)|(?&lt;LANG&gt;[^|]&lt;EM&gt;)|(?&lt;FORMAT&gt;[^|]&lt;/FORMAT&gt;&lt;/EM&gt;)|(?&lt;SIZE&gt;\d*)|(?&lt;SOURCE&gt;[^|]&lt;EM&gt;)|(?&lt;ERRORCODE&gt;[^|]&lt;/ERRORCODE&gt;&lt;/EM&gt;)|(?&lt;LINKS&gt;[^|]&lt;EM&gt;)|(?&lt;BADLINKS&gt;[^|]&lt;/BADLINKS&gt;&lt;/EM&gt;)|(?&lt;COLLECTIONID&gt;\d*)|(?&lt;SOURCEID&gt;\d*)|(?&lt;PRINTABLEURI&gt;[^|]*)&lt;/PRINTABLEURI&gt;&lt;/SOURCEID&gt;&lt;/COLLECTIONID&gt;&lt;/LINKS&gt;&lt;/SOURCE&gt;&lt;/SIZE&gt;&lt;/LANG&gt;&lt;/OPERATION&gt;&lt;/DESCRIPTION&gt;&lt;/DURATION&gt;&lt;/TIME&gt;&lt;/DATE&gt;&lt;/SEVERITY&gt;&lt;/ID&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 10:23:39 GMT</pubDate>
    <dc:creator>apare</dc:creator>
    <dc:date>2020-09-28T10:23:39Z</dc:date>
    <item>
      <title>Can't load my custom fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-load-my-custom-fields/m-p/64638#M12987</link>
      <description>&lt;P&gt;I try to index my logs with a custom Source type. Here is my files :&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Log file exemple :&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#HeaderKey1: header value 1
#HeaderKey2: header value 2
id|severity|date|time|duration|description|uri|operation|collection|lang|format|size|source|errorcode|links|badlinks|collectionid|sourceid|printableuri
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf :&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_log]
DELIMS="|"
FIELDS = "id", "severity", "date", "time", "duration", "description", "uri", "operation", "collection", "lang", "format", "size", "source", "errorcode", "links", "badlinks", "collectionid", "sourceid", "printableuri"

[my_log_comment]
REGEX = ^#
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf :&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_log]
EXTRACT-my_log = my_log_comment, my_log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The result is that all the line are indexed (header include) and the only field i got is _raw... I do not care about the information in the header; I don't want to index it or to take information from it. I only want to have all my log with all the fields.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;What is wrong in my configuration? What i should do to index my custom log file correctly&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2012 19:29:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-load-my-custom-fields/m-p/64638#M12987</guid>
      <dc:creator>apare</dc:creator>
      <dc:date>2012-02-03T19:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't load my custom fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-load-my-custom-fields/m-p/64639#M12988</link>
      <description>&lt;P&gt;Your props.conf file is wrong. It's not EXTRACT but TRANSFORMS.&lt;BR /&gt;
The rest looks ok.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2012 13:13:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-load-my-custom-fields/m-p/64639#M12988</guid>
      <dc:creator>bojanz</dc:creator>
      <dc:date>2012-02-05T13:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't load my custom fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-load-my-custom-fields/m-p/64640#M12989</link>
      <description>&lt;P&gt;TRANSFORMS is for index-time creation of fields and doesn't support extracting fields using delimiters like you want to. bojanz is right however in that you shouldn't be using EXTRACT, as it is used for defining directly in props.conf how fields should be extracted using regexes. For extractions that use definitions in transforms.conf, you should use REPORT.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2012 13:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-load-my-custom-fields/m-p/64640#M12989</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-02-05T13:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't load my custom fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-load-my-custom-fields/m-p/64641#M12990</link>
      <description>&lt;P&gt;Thank you&lt;BR /&gt;
there is my new props.conf&lt;BR /&gt;
[ces_index_log]&lt;BR /&gt;
EXTRACT-ces_index_log = (?&lt;ID&gt;\d*)|(?&lt;SEVERITY&gt;\w*)|(?&lt;DATE&gt;\d{4}-\d{2}-\d{2})|(?&lt;TIME&gt;\d{2}:\d{2}:\d{2})|(?&lt;DURATION&gt;\d*)|(?&lt;DESCRIPTION&gt;[^|]&lt;EM&gt;)|(?&lt;URI&gt;[^|]&lt;/URI&gt;&lt;/EM&gt;)|(?&lt;OPERATION&gt;[^|]&lt;EM&gt;)|(?&lt;COLLECTION&gt;[^|]&lt;/COLLECTION&gt;&lt;/EM&gt;)|(?&lt;LANG&gt;[^|]&lt;EM&gt;)|(?&lt;FORMAT&gt;[^|]&lt;/FORMAT&gt;&lt;/EM&gt;)|(?&lt;SIZE&gt;\d*)|(?&lt;SOURCE&gt;[^|]&lt;EM&gt;)|(?&lt;ERRORCODE&gt;[^|]&lt;/ERRORCODE&gt;&lt;/EM&gt;)|(?&lt;LINKS&gt;[^|]&lt;EM&gt;)|(?&lt;BADLINKS&gt;[^|]&lt;/BADLINKS&gt;&lt;/EM&gt;)|(?&lt;COLLECTIONID&gt;\d*)|(?&lt;SOURCEID&gt;\d*)|(?&lt;PRINTABLEURI&gt;[^|]*)&lt;/PRINTABLEURI&gt;&lt;/SOURCEID&gt;&lt;/COLLECTIONID&gt;&lt;/LINKS&gt;&lt;/SOURCE&gt;&lt;/SIZE&gt;&lt;/LANG&gt;&lt;/OPERATION&gt;&lt;/DESCRIPTION&gt;&lt;/DURATION&gt;&lt;/TIME&gt;&lt;/DATE&gt;&lt;/SEVERITY&gt;&lt;/ID&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:23:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-load-my-custom-fields/m-p/64641#M12990</guid>
      <dc:creator>apare</dc:creator>
      <dc:date>2020-09-28T10:23:39Z</dc:date>
    </item>
  </channel>
</rss>

