<?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: Splunk Fields Extraction - Open telemetry Collector in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Fields-Extraction-Open-telemetry-Collector/m-p/746055#M22247</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/310131"&gt;@mattt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a little confused as to why requestId= is still present in the second event example.&lt;/P&gt;&lt;P&gt;If you want to run the regex extract against the "requestID" field then you need to add "in &amp;lt;fieldName&amp;gt;" to your extract:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;regex&amp;gt; in &amp;lt;src_field&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;See &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.4.1/Admin/Propsconf#:~:text=EXTRACT%2D%3Cclass%3E%20%3D%20%5B%3Cregex%3E%7C%3Cregex%3E%20in%20%3Csrc_field%3E%5D" target="_self"&gt;the docs here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EXTRACT-requestId = (requestId=)?(?&amp;lt;field_requestId&amp;gt;[a-f0-9\-]{36})
EXTRACT-Response = Response:\s(?&amp;lt;field_response&amp;gt;([A-Z]+)\s([^\s,]+(?:[^\r\n]+)))
EXTRACT-Request = Request:\s(?&amp;lt;field_request&amp;gt;([A-Z]+)\s([^\s,]+(?:[^\r\n]+)))&lt;/LI-CODE&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;</description>
    <pubDate>Tue, 13 May 2025 15:18:48 GMT</pubDate>
    <dc:creator>livehybrid</dc:creator>
    <dc:date>2025-05-13T15:18:48Z</dc:date>
    <item>
      <title>Splunk Fields Extraction - Open telemetry Collector</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Fields-Extraction-Open-telemetry-Collector/m-p/746044#M22246</link>
      <description>&lt;P class=""&gt;Good morning,&lt;/P&gt;&lt;P class=""&gt;I’m experiencing an issue with the following log:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;15:41:41,341	
2025-05-13 15:41:41,340 DEBUG [org.jbo.res.rea.cli.log.DefaultClientLogger] (vert.x-eventloop-thread-1) requestId=31365aee-0e03-43bc-9ccd-fd465aa7a4ca Request: GET http://something.com/something/else Headers[Accept=application/json If-Modified-Since=Tue, 13 May 2025 04:00:27 GMT User-Agent=Quarkus REST Client], Empty body&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;2025-05-13 15:41:39,970 DEBUG [org.jbo.res.rea.cli.log.DefaultClientLogger] (vert.x-eventloop-thread-1) requestId=95a1a839-2967-4ab8-8302-f5480106adb6 Response: GET http://something.com/something/else, Status[304 Not Modified], Headers[access-control-allow-credentials=true access-control-allow-headers=content-type, accept, authorization, cache-control, pragma access-control-allow-methods=OPTIONS,HEAD,POST,GET access-control-allow-origin=* cache-control=no-cache server-timing=intid;desc=4e7d2996fd2b9cc9 set-cookie=d81b2a11fe1ca01805243b5777a6e906=abae4222185903c47a832e0c67618490; path=/; HttpOnly]&lt;/LI-CODE&gt;&lt;P class=""&gt;A bit of context that may be relevant: these logs are shipped using Splunk OTEL collectors.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mattt_0-1747144157701.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38953i245FCAB91FA35C04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mattt_0-1747144157701.png" alt="mattt_0-1747144157701.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the _raw logs, I see the following field values:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Field&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="69px"&gt;requestID&lt;/TD&gt;&lt;TD width="50%" height="69px"&gt;95a1a839-2967-4ab8-8302-f5480106adb6 Response: GET&amp;nbsp;&lt;A href="http://something.com/something/else" target="_blank" rel="noopener"&gt;http://something.com/something/else&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="69px"&gt;requestID&lt;/TD&gt;&lt;TD width="50%" height="69px"&gt;requestId=31365aee-0e03-43bc-9ccd-fd465aa7a4ca Request: GET &lt;A href="http://something.com/something/else" target="_blank" rel="noopener"&gt;http://something.com/something/else&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;What I want is for the requestID, and the Request or Response parts to be extracted into separate fields.&lt;/P&gt;&lt;P class=""&gt;I’ve already added the following to my props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[sourcetype*]
EXTRACT-requestId = requestId=(?&amp;lt;field_request&amp;gt;[a-f0-9\-]+)
EXTRACT-Response = Response:\s(?&amp;lt;field_response&amp;gt;([A-Z]+)\s([^\s,]+(?:[^\r\n]+)))
EXTRACT-Request = Request:\s(?&amp;lt;field_request&amp;gt;([A-Z]+)\s([^\s,]+(?:[^\r\n]+)))&lt;/LI-CODE&gt;&lt;P class=""&gt;I verified on &lt;A class="" href="https://regex101.com/" target="_new" rel="noopener"&gt;regex101&lt;/A&gt; that the regex matches correctly, but it's not working in Splunk.&lt;/P&gt;&lt;P class=""&gt;Could the issue be that the log show Response: instead of Response= and Splunk doesn’t treat it as a proper field delimiter? Unfortunately, I’m unable to modify the source lo&lt;/P&gt;&lt;P class=""&gt;What else can I check? Do I need to modify the .yml configuration for the Splunk OTEL collector, or should I stick to using props.conf and transforms.conf?&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thank you in advance,&lt;/P&gt;&lt;P class=""&gt;Best Regards.&lt;/P&gt;&lt;P class=""&gt;Matteo&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 14:13:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Fields-Extraction-Open-telemetry-Collector/m-p/746044#M22246</guid>
      <dc:creator>mattt</dc:creator>
      <dc:date>2025-05-13T14:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Fields Extraction - Open telemetry Collector</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Fields-Extraction-Open-telemetry-Collector/m-p/746055#M22247</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/310131"&gt;@mattt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a little confused as to why requestId= is still present in the second event example.&lt;/P&gt;&lt;P&gt;If you want to run the regex extract against the "requestID" field then you need to add "in &amp;lt;fieldName&amp;gt;" to your extract:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;regex&amp;gt; in &amp;lt;src_field&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;See &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.4.1/Admin/Propsconf#:~:text=EXTRACT%2D%3Cclass%3E%20%3D%20%5B%3Cregex%3E%7C%3Cregex%3E%20in%20%3Csrc_field%3E%5D" target="_self"&gt;the docs here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EXTRACT-requestId = (requestId=)?(?&amp;lt;field_requestId&amp;gt;[a-f0-9\-]{36})
EXTRACT-Response = Response:\s(?&amp;lt;field_response&amp;gt;([A-Z]+)\s([^\s,]+(?:[^\r\n]+)))
EXTRACT-Request = Request:\s(?&amp;lt;field_request&amp;gt;([A-Z]+)\s([^\s,]+(?:[^\r\n]+)))&lt;/LI-CODE&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;</description>
      <pubDate>Tue, 13 May 2025 15:18:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Fields-Extraction-Open-telemetry-Collector/m-p/746055#M22247</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-05-13T15:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Fields Extraction - Open telemetry Collector</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Fields-Extraction-Open-telemetry-Collector/m-p/746750#M22315</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp; sorry for the late response. Unfortunately, the answer you provided does not work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mattt_0-1747929334661.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39094i2C113D198DA777BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mattt_0-1747929334661.png" alt="mattt_0-1747929334661.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Still no extraction and same behaviour.&lt;BR /&gt;Can you help me split and create the correct splunk field?&lt;BR /&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 16:01:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Fields-Extraction-Open-telemetry-Collector/m-p/746750#M22315</guid>
      <dc:creator>mattt</dc:creator>
      <dc:date>2025-05-22T16:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Fields Extraction - Open telemetry Collector</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Fields-Extraction-Open-telemetry-Collector/m-p/746752#M22316</link>
      <description>&lt;P&gt;Looking back it looks like I might have pasted in the wrong bit as I didnt add the "in &amp;lt;field&amp;gt;"&lt;/P&gt;&lt;P&gt;How about this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EXTRACT-requestId = (?&amp;lt;field_requestId&amp;gt;[a-f0-9\-]{36}) in requestId&lt;/LI-CODE&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;</description>
      <pubDate>Thu, 22 May 2025 16:06:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Fields-Extraction-Open-telemetry-Collector/m-p/746752#M22316</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-05-22T16:06:22Z</dc:date>
    </item>
  </channel>
</rss>

