<?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: Transforms not working trying to extract KV pairs from URL in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/761188#M120529</link>
    <description>&lt;P&gt;When you are looking access_combined from .../etc/system/default/props.conf you see that it's using transforms&amp;nbsp;REPORT-access = access-extractions&lt;BR /&gt;Then when you looking it, you see lot of recursive definitions where those parts are divided.&lt;BR /&gt;Those are after this comments&lt;/P&gt;&lt;P&gt;######## access-extractions helpers start ########&lt;BR /&gt;# make sure to handle escaped quotes (\") inside the URI&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[access-extractions]
# matches access-common or access-combined apache logging formats
# Extracts: clientip, clientport, ident, user, req_time, method, uri, root, file, uri_domain, uri_query, version, status, bytes, referer_url, referer_domain, referer_proto, useragent, cookie, other (remaining chars)
# Note: referer is misspelled in purpose because that is the "official" spelling for "HTTP referer"
REGEX = ^[[nspaces:clientip]]\s++[[nspaces:ident]]\s++[[nspaces:user]]\s++[[sbstring:req_time]]\s++[[access-request]]\s++[[nspaces:status]]\s++[[nspaces:bytes]](?:\s++"(?&amp;lt;referer&amp;gt;[[bc_domain:referer_]]?+[^"]*+)"(?:\s++[[qstring:useragent]](?:\s++[[qstring:cookie]])?+)?+)?[[all:other]]&lt;/LI-CODE&gt;&lt;P&gt;all those [[&amp;lt;type&amp;gt;:&amp;lt;field name&amp;gt;]] are tokens which get values.&lt;BR /&gt;Just look deeper which each &amp;lt;type&amp;gt; is, then maybe you need to look again what those contains etc.&lt;/P&gt;&lt;P&gt;e.g access-request is&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[access-request]
# very relaxed regex for extracting fields from the request
REGEX = "\s*+[[reqstr:method]]?(?:\s++[[bc_uri]](?:\s++[[reqstr:version]])*)?\s*+"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I contains e.g. bc_uri this is defined as&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[bc_uri]
# backwards compatible uri regex
# uri  = path optionally followed by query [/this/path/file.js?query=part&amp;amp;other=var]
# path = root part followed by file        [/root/part/file.part]
# Extracts: uri, uri_path, root, file, uri_query, uri_domain (optional if in proxy mode)
REGEX = (?&amp;lt;uri&amp;gt;[[bc_domain:uri_]]?+(?&amp;lt;uri_path&amp;gt;[[uri_root]]?[[uri_seg]]*(?&amp;lt;file&amp;gt;[^\s\?/]+)?)(?:\?(?&amp;lt;uri_query&amp;gt;[^\s]*))?)&lt;/LI-CODE&gt;&lt;P&gt;And so on. &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 May 2026 14:11:37 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2026-05-22T14:11:37Z</dc:date>
    <item>
      <title>Transforms not working trying to extract KV pairs from URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760921#M120503</link>
      <description>&lt;P&gt;I have events with URLs, and the URLs contain parameters with KV values in them. Splunk auto extracts the KV pairs, but I want the transforms to apply a prefixed value to the key names from the pairs in the URL. For some reason my transforms refuse to work.&lt;/P&gt;&lt;P&gt;Here are a few sample events:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;05-11-2026T14:08:01-05:00 LogLevel=INFO TraceId=69baf81038352c1e63cae59b98259742 Url=https://api.something.com/rsi/something/replacement/internal/something_internal_services/resources/org/p/ZMC31/01?hierarchy=false&amp;amp;includeInactive=true&amp;amp;test1=test2&amp;amp;test3=test4 DurationMillis=109 hierarchy=maybe includeInactive=false
05-11-2026T14:07:54-05:00 LogLevel=INFO TraceId=69baf80a0a882f20e6c944e61c5109a2 Url=https://api.something.com/rsi/something/replacement/internal/something_internal_services/resources/org/p/3UC31/01?hierarchy=false&amp;amp;includeInactive=true&amp;amp;test1=test2&amp;amp;test3=test4 DurationMillis=106 hierarchy=maybe includeInactive=false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I would like the extracted results from the URL to look like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;QP_hierarchy=false
QP_includeInactive=true
QP_test1=test2
QP_test3=test4&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my props and transforms:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[app_transaction]
LINE_BREAKER = ([\r\n]+
MAX_TIMESTAMP_LOOKAHEAD = 30
SHOULD_LINEMERGE = False
TIME_PREFIX = ^
TRANSFORMS-extract = app_transaction_params
TRUNCATE = 99999

[app_transaction_params]
FORMAT = QP_$1::$2
MV_ADD = false
REGEX = (?:\?|&amp;amp;)(\w+)=([^&amp;amp;\s]+)
REPEAT_MATCH = true
SOURCE_KEY = _raw&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The regex seems to work in regex101.com and extracts the groups correctly. The props is line breaking correctly.&amp;nbsp;Any ideas whats wrong with my transforms here?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 14:13:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760921#M120503</guid>
      <dc:creator>pdominicb</dc:creator>
      <dc:date>2026-05-13T14:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not working trying to extract KV pairs from URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760931#M120504</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/263620"&gt;@pdominicb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) may i know where did you configure the props and transforms?&amp;nbsp;&lt;BR /&gt;&amp;nbsp;is it on indexers or search heads or heavy forwarders or UF's?&lt;/P&gt;&lt;P&gt;2) after updating the props and transforms, did you restart the splunk service?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------&lt;BR /&gt;If this post or any post addressed your question, could you pls:&lt;BR /&gt;Give it karma to show appreciation&lt;/P&gt;&lt;P&gt;PS - As of May 2026, my Karma Given is 2312 and my Karma Received is 497, lets revamp the Karma Culture!&lt;BR /&gt;Thanks and best regards, Sekar&lt;BR /&gt;--------------------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 15:15:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760931#M120504</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2026-05-13T15:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not working trying to extract KV pairs from URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760932#M120505</link>
      <description>&lt;P&gt;Oh sorry, I should have added that context in my post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The props and transforms are both on the indexers, and yes Splunk has been restarted. Although I believe when props and transforms are pushed to indexers the deploy will do a reload, correct?&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 15:19:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760932#M120505</guid>
      <dc:creator>pdominicb</dc:creator>
      <dc:date>2026-05-13T15:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not working trying to extract KV pairs from URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760934#M120506</link>
      <description>&lt;P&gt;to understand whether the props and transforms are being applied or not, you can use the btool command&lt;/P&gt;&lt;P&gt;/opt/splunk/bin/splunk btool props list &amp;lt;sourcetype&amp;gt; --debug&lt;/P&gt;&lt;P&gt;/opt/splunk/bin/splunk btool transforms list &amp;lt;transform_name&amp;gt; --debug&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 15:26:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760934#M120506</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2026-05-13T15:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not working trying to extract KV pairs from URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760935#M120507</link>
      <description>&lt;P&gt;It says they are, but its not applying the prefix in Splunk.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[splunk@myhost ~]$ /opt/splunk/bin/splunk btool props list app_transaction --debug | grep local
/opt/splunk/etc/apps/ehi_dev_standard_props/local/props.conf [app_transaction]
/opt/splunk/etc/apps/ehi_dev_standard_props/local/props.conf LINE_BREAKER = ([\r\n]+
/opt/splunk/etc/apps/ehi_dev_standard_props/local/props.conf MAX_TIMESTAMP_LOOKAHEAD = 30
/opt/splunk/etc/apps/ehi_dev_standard_props/local/props.conf SHOULD_LINEMERGE = False
/opt/splunk/etc/apps/ehi_dev_standard_props/local/props.conf TIME_PREFIX = ^
/opt/splunk/etc/apps/ehi_dev_standard_props/local/props.conf TRANSFORMS-extract = app_transaction_params
/opt/splunk/etc/apps/ehi_dev_standard_props/local/props.conf TRUNCATE = 99999

[splunk@myhost ~]$ /opt/splunk/bin/splunk btool transforms list app_transaction_params --debug | grep local
/opt/splunk/etc/apps/ehi_dev_standard_props/local/transforms.conf [app_transaction_params]
/opt/splunk/etc/apps/ehi_dev_standard_props/local/transforms.conf FORMAT = QP_$1::$2
/opt/splunk/etc/apps/ehi_dev_standard_props/local/transforms.conf MV_ADD = false
/opt/splunk/etc/apps/ehi_dev_standard_props/local/transforms.conf REGEX = (?:\?|&amp;amp;)(\w+)=([^&amp;amp;\s]+)
/opt/splunk/etc/apps/ehi_dev_standard_props/local/transforms.conf REPEAT_MATCH = true
/opt/splunk/etc/apps/ehi_dev_standard_props/local/transforms.conf SOURCE_KEY = _raw&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 13 May 2026 15:30:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760935#M120507</guid>
      <dc:creator>pdominicb</dc:creator>
      <dc:date>2026-05-13T15:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not working trying to extract KV pairs from URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760945#M120509</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/263620"&gt;@pdominicb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This configuration would create index-time extractions not search-time, is that intentional? Therefore changes you make will not apply to previously ingested data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 23:33:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760945#M120509</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2026-05-13T23:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not working trying to extract KV pairs from URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760950#M120510</link>
      <description>&lt;P&gt;That is the intention and I'm aware that it would not apply to previously indexed data. However, if you think this would work better (or at all) as a search time extraction I would be ok with that as a solution. It was my impression that this would not work at search time and had to be on indexers. Do you think I should move this to the search heads?&lt;/P&gt;&lt;P&gt;EDIT: I just tried this on a single instance deployment and am still not seeing the field names show up prefixed with "QP_" like QP_hierarchy. So it just seems like there is something wrong in my transforms, or my props isn't actually calling the transforms for some reason.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2026 12:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760950#M120510</guid>
      <dc:creator>pdominicb</dc:creator>
      <dc:date>2026-05-14T12:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not working trying to extract KV pairs from URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760986#M120515</link>
      <description>&lt;P&gt;Adding to&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;'s comment - as a rule of thumb, search time extractions are "better". Unless you have a really border case, it's better to create a search time extraction (and maybe accelerate the search in one of possible ways if you need it) than to create index time extractions.&lt;/P&gt;&lt;P&gt;Anyway, my first guess would be that you might by any chance using indexed extractions.&lt;/P&gt;&lt;P&gt;Secondly, I can never get my head around when you need the WRITE_META setting and when you don't.&lt;/P&gt;&lt;P&gt;But still I'd just go for search time extraction.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2026 15:57:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760986#M120515</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2026-05-15T15:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not working trying to extract KV pairs from URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760994#M120516</link>
      <description>&lt;P&gt;Splunk has created some (or actually quite many) parsing tokens for different http URLs. You should just look those from $SPLUNK_HOME/etc/system/default/props+transfoms.conf files. Basically you could utilize those generic tokenizations in your own definitions too. Those are parsing URLs quite well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2026 23:08:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/760994#M120516</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2026-05-15T23:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not working trying to extract KV pairs from URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/761033#M120523</link>
      <description>&lt;P&gt;I see "simple_url" and "url" in the transforms.conf spec. But they look like they only extract the url, domain, uri, and a few other things. But they don create extracted KV pairs from a url parameter string.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if I'm missing any.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 14:40:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/761033#M120523</guid>
      <dc:creator>pdominicb</dc:creator>
      <dc:date>2026-05-18T14:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not working trying to extract KV pairs from URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/761188#M120529</link>
      <description>&lt;P&gt;When you are looking access_combined from .../etc/system/default/props.conf you see that it's using transforms&amp;nbsp;REPORT-access = access-extractions&lt;BR /&gt;Then when you looking it, you see lot of recursive definitions where those parts are divided.&lt;BR /&gt;Those are after this comments&lt;/P&gt;&lt;P&gt;######## access-extractions helpers start ########&lt;BR /&gt;# make sure to handle escaped quotes (\") inside the URI&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[access-extractions]
# matches access-common or access-combined apache logging formats
# Extracts: clientip, clientport, ident, user, req_time, method, uri, root, file, uri_domain, uri_query, version, status, bytes, referer_url, referer_domain, referer_proto, useragent, cookie, other (remaining chars)
# Note: referer is misspelled in purpose because that is the "official" spelling for "HTTP referer"
REGEX = ^[[nspaces:clientip]]\s++[[nspaces:ident]]\s++[[nspaces:user]]\s++[[sbstring:req_time]]\s++[[access-request]]\s++[[nspaces:status]]\s++[[nspaces:bytes]](?:\s++"(?&amp;lt;referer&amp;gt;[[bc_domain:referer_]]?+[^"]*+)"(?:\s++[[qstring:useragent]](?:\s++[[qstring:cookie]])?+)?+)?[[all:other]]&lt;/LI-CODE&gt;&lt;P&gt;all those [[&amp;lt;type&amp;gt;:&amp;lt;field name&amp;gt;]] are tokens which get values.&lt;BR /&gt;Just look deeper which each &amp;lt;type&amp;gt; is, then maybe you need to look again what those contains etc.&lt;/P&gt;&lt;P&gt;e.g access-request is&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[access-request]
# very relaxed regex for extracting fields from the request
REGEX = "\s*+[[reqstr:method]]?(?:\s++[[bc_uri]](?:\s++[[reqstr:version]])*)?\s*+"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I contains e.g. bc_uri this is defined as&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[bc_uri]
# backwards compatible uri regex
# uri  = path optionally followed by query [/this/path/file.js?query=part&amp;amp;other=var]
# path = root part followed by file        [/root/part/file.part]
# Extracts: uri, uri_path, root, file, uri_query, uri_domain (optional if in proxy mode)
REGEX = (?&amp;lt;uri&amp;gt;[[bc_domain:uri_]]?+(?&amp;lt;uri_path&amp;gt;[[uri_root]]?[[uri_seg]]*(?&amp;lt;file&amp;gt;[^\s\?/]+)?)(?:\?(?&amp;lt;uri_query&amp;gt;[^\s]*))?)&lt;/LI-CODE&gt;&lt;P&gt;And so on. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2026 14:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-trying-to-extract-KV-pairs-from-URL/m-p/761188#M120529</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2026-05-22T14:11:37Z</dc:date>
    </item>
  </channel>
</rss>

