<?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 Is it possible to do search time field extraction based punct in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-do-search-time-field-extraction-based-punct/m-p/751061#M119282</link>
    <description>&lt;P&gt;I have events in a log file and they have different formats from event to event. I'm wondering if there is any way to use the punct field to do conditional field extraction? Let's say I have these two punct formats ...&lt;/P&gt;&lt;P&gt;___::_---..__//:::__---_--_:______:____-___-__..._&lt;/P&gt;&lt;P&gt;___::_---..__//:::__---_--_:______:___...:_-__...:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;I'm specifically asking about doing it with props and transforms so that the fields are reusable.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Aug 2025 15:02:48 GMT</pubDate>
    <dc:creator>fredclown</dc:creator>
    <dc:date>2025-08-06T15:02:48Z</dc:date>
    <item>
      <title>Is it possible to do search time field extraction based punct</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-do-search-time-field-extraction-based-punct/m-p/751061#M119282</link>
      <description>&lt;P&gt;I have events in a log file and they have different formats from event to event. I'm wondering if there is any way to use the punct field to do conditional field extraction? Let's say I have these two punct formats ...&lt;/P&gt;&lt;P&gt;___::_---..__//:::__---_--_:______:____-___-__..._&lt;/P&gt;&lt;P&gt;___::_---..__//:::__---_--_:______:___...:_-__...:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;I'm specifically asking about doing it with props and transforms so that the fields are reusable.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 15:02:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-do-search-time-field-extraction-based-punct/m-p/751061#M119282</guid>
      <dc:creator>fredclown</dc:creator>
      <dc:date>2025-08-06T15:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do search time field extraction based punct</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-do-search-time-field-extraction-based-punct/m-p/751069#M119283</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/146503"&gt;@fredclown&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes. You can use it for conditional field extraction.&lt;/P&gt;&lt;P&gt;eg:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=2
| streamstats count as row
| eval _raw=case(
row=1, "abc::123-45..xy//:::zz-88-99:demo...end",
row=2, "abc:123-45..xy//:::zz-88-99:demo:from...:demo...:"
)
| eval punct=replace(_raw, "[A-Za-z0-9]", "_")
| eval type=case(
match(punct, "\\.\\.\\.___$"), "Type A",
match(punct, "\\.\\.\\.:$"), "Type B",
true(), "Unknown"
)
| table row _raw punct type
&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="demo.JPG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39845iA0AA6DD71750ACEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="demo.JPG" alt="demo.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Prewin&lt;BR /&gt;Splunk Enthusiast | Always happy to help! If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 04:35:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-do-search-time-field-extraction-based-punct/m-p/751069#M119283</guid>
      <dc:creator>PrewinThomas</dc:creator>
      <dc:date>2025-08-06T04:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do search time field extraction based punct</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-do-search-time-field-extraction-based-punct/m-p/751103#M119284</link>
      <description>&lt;P&gt;Thanks, and sorry I was not clear enough. I want to do this with props and transforms so that the fields are reusable.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 15:02:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-do-search-time-field-extraction-based-punct/m-p/751103#M119284</guid>
      <dc:creator>fredclown</dc:creator>
      <dc:date>2025-08-06T15:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do search time field extraction based punct</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-do-search-time-field-extraction-based-punct/m-p/751106#M119285</link>
      <description>&lt;P&gt;punct is (if it's generated, because its creation can be disabled) an indexed field like any other so you can use it. But the question is what do you mean by "conditional" extraction.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 16:08:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-do-search-time-field-extraction-based-punct/m-p/751106#M119285</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-08-06T16:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do search time field extraction based punct</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-do-search-time-field-extraction-based-punct/m-p/751174#M119290</link>
      <description>&lt;P&gt;I think that you cannot do this with props and transforms. The reason for that is the order how those different processors are done in ingestion phase. See e.g&amp;nbsp;&lt;A href="https://www.aplura.com/assets/pdf/props_conf_order.pdf" target="_blank"&gt;https://www.aplura.com/assets/pdf/props_conf_order.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Based on that diagram, ANNOTATE_PUNCT is after Splunk has apply other props and transforms stuff and events cannot go backwards on ingestion pipeline.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 07:35:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-do-search-time-field-extraction-based-punct/m-p/751174#M119290</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-08-07T07:35:24Z</dc:date>
    </item>
  </channel>
</rss>

