<?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: why field extraction doesn't work when defined as calculated field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/why-field-extraction-doesn-t-work-when-defined-as-calculated/m-p/751216#M242465</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/196884"&gt;@danielbb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try removing the "P" from each extraction - Splunk uses&amp;nbsp;&lt;EM&gt;PCRE&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;(Perl Compatible Regular Expressions) Regex not RE2 so does not include the P in the named extraction.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also noticed that you mentioned "calculated" field extraction - this expects something can be eval'd not a regex. What you need to use is a "Field Extractions" if editing in the UI, and then add the regex in the "Extraction/Transform" field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="livehybrid_0-1754581647298.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39884i415CD4A7A565397D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="livehybrid_0-1754581647298.png" alt="livehybrid_0-1754581647298.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;</description>
    <pubDate>Thu, 07 Aug 2025 15:47:33 GMT</pubDate>
    <dc:creator>livehybrid</dc:creator>
    <dc:date>2025-08-07T15:47:33Z</dc:date>
    <item>
      <title>why field extraction doesn't work when defined as calculated field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/why-field-extraction-doesn-t-work-when-defined-as-calculated/m-p/751214#M242464</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have this regex -&lt;BR /&gt;^(?:[^ \\n]* ){7}(?P&amp;lt;src_host&amp;gt;[^ ]+)[^:\\n]*:\\s+(?P&amp;lt;event_id&amp;gt;[a-f0-9]+:\\d+)(?:[^/\\n]*/){2}(?P&amp;lt;dest_zone&amp;gt;[^\\.]+)&lt;BR /&gt;&lt;BR /&gt;I put it in the field extraction with the right sourcetype as inline field extraction, and it still won't show the extracted fields when searched.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;_internal shows that its status is - "applied"&lt;BR /&gt;&lt;BR /&gt;Any idea why?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 15:42:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/why-field-extraction-doesn-t-work-when-defined-as-calculated/m-p/751214#M242464</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2025-08-07T15:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: why field extraction doesn't work when defined as calculated field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/why-field-extraction-doesn-t-work-when-defined-as-calculated/m-p/751216#M242465</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/196884"&gt;@danielbb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try removing the "P" from each extraction - Splunk uses&amp;nbsp;&lt;EM&gt;PCRE&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;(Perl Compatible Regular Expressions) Regex not RE2 so does not include the P in the named extraction.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also noticed that you mentioned "calculated" field extraction - this expects something can be eval'd not a regex. What you need to use is a "Field Extractions" if editing in the UI, and then add the regex in the "Extraction/Transform" field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="livehybrid_0-1754581647298.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39884i415CD4A7A565397D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="livehybrid_0-1754581647298.png" alt="livehybrid_0-1754581647298.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Thu, 07 Aug 2025 15:47:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/why-field-extraction-doesn-t-work-when-defined-as-calculated/m-p/751216#M242465</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-08-07T15:47:33Z</dc:date>
    </item>
  </channel>
</rss>

