<?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 field extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/710670#M240016</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please extract DUSTER and JUNIPER as app_name from following sample events -&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;SPAN class=""&gt;unit_hostname=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;GBWDC111AD011HMA.systems.uk.fed&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;support_id=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;16675049156208762610&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;vs_name=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;/f5-tenant-01/DUSTER-GBM-FR-DEV/v-dusteruat.systems.uk.fed-443&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;policy_name=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;/Common/waf-fed-transparent&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;SPAN class=""&gt;unit_hostname=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;GBWDC111AD011HMA.systems.uk.fed&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;support_id=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;16675049156208762610&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;vs_name=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;/f5-tenant-01/JUNIPER-GBM-FR-DEV/v-juniperuat.systems.uk.fed-443&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;policy_name=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;/Common/waf-fed-transparent&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The app_names will be dynamic and there is no gurantee that everytime GBM will not be coming beside app_names.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried this -&amp;nbsp;vs_name=\"\/.*\/(?&amp;lt;app_name&amp;gt;.*)\-GBM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but as I told everytime GBM will not same in all events. Please make it generic and give the regex for me. Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2025 06:34:01 GMT</pubDate>
    <dc:creator>splunklearner</dc:creator>
    <dc:date>2025-02-05T06:34:01Z</dc:date>
    <item>
      <title>field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/710670#M240016</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please extract DUSTER and JUNIPER as app_name from following sample events -&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;SPAN class=""&gt;unit_hostname=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;GBWDC111AD011HMA.systems.uk.fed&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;support_id=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;16675049156208762610&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;vs_name=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;/f5-tenant-01/DUSTER-GBM-FR-DEV/v-dusteruat.systems.uk.fed-443&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;policy_name=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;/Common/waf-fed-transparent&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;SPAN class=""&gt;unit_hostname=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;GBWDC111AD011HMA.systems.uk.fed&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;support_id=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;16675049156208762610&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;vs_name=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;/f5-tenant-01/JUNIPER-GBM-FR-DEV/v-juniperuat.systems.uk.fed-443&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;policy_name=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;/Common/waf-fed-transparent&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The app_names will be dynamic and there is no gurantee that everytime GBM will not be coming beside app_names.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried this -&amp;nbsp;vs_name=\"\/.*\/(?&amp;lt;app_name&amp;gt;.*)\-GBM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but as I told everytime GBM will not same in all events. Please make it generic and give the regex for me. Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 06:34:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/710670#M240016</guid>
      <dc:creator>splunklearner</dc:creator>
      <dc:date>2025-02-05T06:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/710678#M240017</link>
      <description>&lt;P&gt;Regular expressions work on pattern matching and two examples is not many to secure a reliable pattern, that being said, if your data has already been extracted into the vs_name field, you could try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=vs_name "^\/[^\/]+\/(?&amp;lt;app_name&amp;gt;\w+)\-"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Feb 2025 08:22:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/710678#M240017</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-02-05T08:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/710688#M240022</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/273723"&gt;@splunklearner&lt;/a&gt;&amp;nbsp;Please check this&lt;/P&gt;&lt;PRE&gt;| makeresults count=2 &lt;BR /&gt;| eval vs_name1="/f5-tenant-01/DUSTER-GBM-FR-DEV/v-dusteruat.systems.uk.fed-443"&lt;BR /&gt;| eval vs_name2="/f5-tenant-01/JUNIPER-GBM-FR-DEV/v-juniperuat.systems.uk.fed-443"&lt;BR /&gt;| eval vs_name=mvappend(vs_name1, vs_name2)&lt;BR /&gt;| mvexpand vs_name&lt;BR /&gt;| rex field=vs_name "\/[^\/]+\/(?&amp;lt;app_name&amp;gt;[^\/\-]+)"&lt;BR /&gt;| table vs_name, app_name&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_0-1738745483721.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34377i506722ACCCDED827/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_0-1738745483721.png" alt="kiran_panchavat_0-1738745483721.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 08:52:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/710688#M240022</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-02-05T08:52:08Z</dc:date>
    </item>
  </channel>
</rss>

