<?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: Field extraction during indexing does not work in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Field-extraction-during-indexing-does-not-work/m-p/524258#M88515</link>
    <description>&lt;P&gt;... just noticed that the transforms.conf entry got messed up when pasting. The correct entry looks as follows:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[dtimes]
REGEX = ^.+s4hana\.ondemand\.com (?P&amp;lt;DBSID&amp;gt;.{3}).+t0\(timeofday\):(?P&amp;lt;t0&amp;gt;.*?);dt1\(us\):(?P&amp;lt;dt1&amp;gt;.*?);dt2\(us\):(?P&amp;lt;dt2&amp;gt;.*?);dt3\(us\):(?P&amp;lt;dt3&amp;gt;.*?);dt4\(us\):(?P&amp;lt;dt4&amp;gt;.*?);total\(us\):(?P&amp;lt;total&amp;gt;.*?)$
SOURCE_KEY=_raw
FORMAT = DBSID::$1 t0::$2 dt1::$3 dt2::$4 dt3::$5 dt4::$6 total::$7
WRITE_META=true&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 12 Oct 2020 17:11:17 GMT</pubDate>
    <dc:creator>damucka</dc:creator>
    <dc:date>2020-10-12T17:11:17Z</dc:date>
    <item>
      <title>Field extraction during indexing does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-extraction-during-indexing-does-not-work/m-p/524245#M88513</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have following entry in my transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[dtimes]
REGEX = ^.+s4hana\.ondemand\.com (?P&amp;lt;DBSID&amp;gt;.{3}).+t0\(timeofday\):(?P&amp;lt;t0&amp;gt;.*?);dt1\(us\):(?P&amp;lt;dt1&amp;gt;.*?);dt2\(us\):(?P&amp;lt;dt2&amp;gt;.*?);dt3\(us\):(?P&amp;lt;dt
t4&amp;gt;.*?);total\(us\):(?P&amp;lt;total&amp;gt;.*?)$
SOURCE_KEY=_raw
FORMAT = DBSID::$1 t0::$2 dt1::$3 dt2::$4 dt3::$5 dt4::$6 total::$7
WRITE_META=true&lt;/LI-CODE&gt;&lt;P&gt;which I would expect extract the corresponding fields out of the events like the one below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[12/Oct/2020:03:56:39 +0000] 10.1.6.58 100/CB9980000122 100/CB9980000122 042457C44BD441A36E673571F0C7D1AF - "GET /sap/bc/ui5_ui5/sap/fin_lib/~D0C2FE335CFD0450BE39DFA0391E81C6~5/error/Error.js HTTP/2" 200 1081 - 2ms my303891.s4hana.ondemand.com NII vhsfhniici_NII_00 "-"TLSv1.2 t0(timeofday):1602474999.837288;dt1(us):501;dt2(us):32;dt3(us):1257;dt4(us):34;total(us):1824&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per regex101 it works fine, also the SPL search with the above rex field=_raw works fine. Unfortunately when placing it in the transforms.conf it does not.&lt;/P&gt;&lt;P&gt;There are also the matching entries in the props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[webdispatcher]
TRANSFORMS-ExtractKeyFields = dtimes
TRANSFORMS-ExtractKeyFields = passportID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and fields.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[SYSTEMDB]
INDEXED = True
INDEXED_VALUE = False

[vhost]
INDEXED = True
INDEXED_VALUE = False

[DBSID]
INDEXED = True
INDEXED_VALUE = False

# ############### Extract the performance KPIs from the Webdispatcher trace
[passportID]
INDEXED = True
INDEXED_VALUE = False

[request]
INDEXED = True
INDEXED_VALUE = False

[status]
INDEXED = True
INDEXED_VALUE = False

[t0]
INDEXED = True
INDEXED_VALUE = False

[dt1]
INDEXED = True
INDEXED_VALUE = False

[dt2]
INDEXED = True
INDEXED_VALUE = False

[dt3]
INDEXED = True
INDEXED_VALUE = False

[dt4]
INDEXED = True
INDEXED_VALUE = False

[total]
INDEXED = True
INDEXED_VALUE = False
#******************************&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;The second regex there (passportID), which is sligtly easier, works fine ...&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Kamil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 15:15:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-extraction-during-indexing-does-not-work/m-p/524245#M88513</guid>
      <dc:creator>damucka</dc:creator>
      <dc:date>2020-10-12T15:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction during indexing does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-extraction-during-indexing-does-not-work/m-p/524258#M88515</link>
      <description>&lt;P&gt;... just noticed that the transforms.conf entry got messed up when pasting. The correct entry looks as follows:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[dtimes]
REGEX = ^.+s4hana\.ondemand\.com (?P&amp;lt;DBSID&amp;gt;.{3}).+t0\(timeofday\):(?P&amp;lt;t0&amp;gt;.*?);dt1\(us\):(?P&amp;lt;dt1&amp;gt;.*?);dt2\(us\):(?P&amp;lt;dt2&amp;gt;.*?);dt3\(us\):(?P&amp;lt;dt3&amp;gt;.*?);dt4\(us\):(?P&amp;lt;dt4&amp;gt;.*?);total\(us\):(?P&amp;lt;total&amp;gt;.*?)$
SOURCE_KEY=_raw
FORMAT = DBSID::$1 t0::$2 dt1::$3 dt2::$4 dt3::$5 dt4::$6 total::$7
WRITE_META=true&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 Oct 2020 17:11:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-extraction-during-indexing-does-not-work/m-p/524258#M88515</guid>
      <dc:creator>damucka</dc:creator>
      <dc:date>2020-10-12T17:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction during indexing does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-extraction-during-indexing-does-not-work/m-p/524259#M88516</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;FORMAT&lt;/FONT&gt; line references 7 capture groups, but the &lt;FONT face="courier new,courier"&gt;REGEX&lt;/FONT&gt; line defines only 6.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 17:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-extraction-during-indexing-does-not-work/m-p/524259#M88516</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-10-12T17:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction during indexing does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-extraction-during-indexing-does-not-work/m-p/524330#M88523</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;That was copy-paste mistake, please see my update.&lt;/P&gt;&lt;P&gt;Both have 7 groups.&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Kamil&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 06:57:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-extraction-during-indexing-does-not-work/m-p/524330#M88523</guid>
      <dc:creator>damucka</dc:creator>
      <dc:date>2020-10-13T06:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction during indexing does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-extraction-during-indexing-does-not-work/m-p/524417#M88527</link>
      <description>&lt;P&gt;It's not necessary for the regular expression to describe every character in the event.&amp;nbsp; Try this regex.&amp;nbsp; It uses fewer steps so at the very least it should perform faster.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;\.s4hana\.ondemand\.com (?P&amp;lt;DBSID&amp;gt;.{3}).+t0\(timeofday\):(?P&amp;lt;t0&amp;gt;.*?);dt1\(us\):(?P&amp;lt;dt1&amp;gt;.*?);dt2\(us\):(?P&amp;lt;dt2&amp;gt;.*?);dt3\(us\):(?P&amp;lt;dt3&amp;gt;.*?);dt4\(us\):(?P&amp;lt;dt4&amp;gt;.*?);total\(us\):(?P&amp;lt;total&amp;gt;.*)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 13:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-extraction-during-indexing-does-not-work/m-p/524417#M88527</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-10-13T13:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction during indexing does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-extraction-during-indexing-does-not-work/m-p/524438#M88530</link>
      <description>&lt;P&gt;The issue was in the props.conf.&lt;/P&gt;&lt;P&gt;It was:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[webdispatcher]
TRANSFORMS-ExtractKeyFields = dtimes
TRANSFORMS-ExtractKeyFields = passportID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it should be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[webdispatcher]
TRANSFORMS-ExtractKeyFields = dtimes, passportID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not know about that. The regex itself was fine.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Kamil&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 15:03:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-extraction-during-indexing-does-not-work/m-p/524438#M88530</guid>
      <dc:creator>damucka</dc:creator>
      <dc:date>2020-10-13T15:03:55Z</dc:date>
    </item>
  </channel>
</rss>

