<?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: props.conf | multiple EXTRACT single GROUP name in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-multiple-EXTRACT-single-GROUP-name/m-p/659837#M9751</link>
    <description>&lt;P&gt;Why do you escape the quotes? You don't need to do that.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2023 18:13:18 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2023-10-05T18:13:18Z</dc:date>
    <item>
      <title>props.conf | multiple EXTRACT single GROUP name</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-multiple-EXTRACT-single-GROUP-name/m-p/659792#M9746</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm struggling to confirm in the docs whether this is permitted or not? I'm working on a TA for Netgear Wi-Fi, the log format is not brilliant to work with but I want to extract the ssid (Wi-Fi) network name. There are two formats of log containing this. I have written:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;EXTRACT-ssid&lt;/LI&gt;&lt;LI&gt;EXTRACT-wifi_join_leave_ssid&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Wi-Fi/default/props.conf   EVAL-src_mac = bssid
Wi-Fi/default/props.conf   EXTRACT-bssid = \"bssid\"\:\"(?&amp;lt;bssid&amp;gt;\w+\-\w+\w+\-\w+\-\w+\-\w+\-\w+)"
Wi-Fi/default/props.conf   EXTRACT-ssid = \"ssid\"\:\"(?&amp;lt;ssid&amp;gt;.*?)"
Wi-FI/default/props.conf   EXTRACT-wifi_join_leave_ssid = (disconnected\sfrom\s|connected\sto\s)(?&amp;lt;ssid&amp;gt;.+?)(?: with an RSSI|}$)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both these extractions appear to work just fine at search time which really surprised me, I was obsessing over trying to combine a long REGEX with an OR. I've obviously referred to:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.1.1/Admin/Propsconf" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.1.1/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Which makes it clear that the CLASS must be unique (no problem) but the capture group name gets no mention?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 13:23:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-multiple-EXTRACT-single-GROUP-name/m-p/659792#M9746</guid>
      <dc:creator>NullZero</dc:creator>
      <dc:date>2023-10-05T13:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf | multiple EXTRACT single GROUP name</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-multiple-EXTRACT-single-GROUP-name/m-p/659803#M9747</link>
      <description>&lt;P&gt;The capture group name is indeed mentioned.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="richgalloway_0-1696514122090.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27458iD4D4C9C23C5D97EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="richgalloway_0-1696514122090.png" alt="richgalloway_0-1696514122090.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;richgalloway_0-1696514122090.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 13:55:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-multiple-EXTRACT-single-GROUP-name/m-p/659803#M9747</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-10-05T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf | multiple EXTRACT single GROUP name</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-multiple-EXTRACT-single-GROUP-name/m-p/659808#M9748</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; , thanks for replying. Let me be clearer, I am extracting SSID twice using the named capture group in both instances is 'SSID' per btool.&lt;/P&gt;&lt;P&gt;What has surprised me and I can't see listed is the requirement for a Unique capturing group name.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 14:29:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-multiple-EXTRACT-single-GROUP-name/m-p/659808#M9748</guid>
      <dc:creator>NullZero</dc:creator>
      <dc:date>2023-10-05T14:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf | multiple EXTRACT single GROUP name</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-multiple-EXTRACT-single-GROUP-name/m-p/659810#M9749</link>
      <description>&lt;P&gt;The highlighted text in my screen shot shows where the Admin manual says a capturing group is required in EXTRACT.&amp;nbsp; It does not say the group name must be unique because that is not a requirement.&amp;nbsp; Although a given regex may fail if the same group name is used more than once, the same group name may be used in multiple EXTRACT settings.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 15:08:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-multiple-EXTRACT-single-GROUP-name/m-p/659810#M9749</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-10-05T15:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf | multiple EXTRACT single GROUP name</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-multiple-EXTRACT-single-GROUP-name/m-p/659811#M9750</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; I think this is the point. What we're saying / agreeing is that there is no requirement for a unique 'capture group name' effectively the two regex field values 'coalesce' and quite tidily in the&amp;nbsp; instance that I have tested. This is a surprise and was not at all clear and actually lends flexibility.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 15:21:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-multiple-EXTRACT-single-GROUP-name/m-p/659811#M9750</guid>
      <dc:creator>NullZero</dc:creator>
      <dc:date>2023-10-05T15:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf | multiple EXTRACT single GROUP name</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-multiple-EXTRACT-single-GROUP-name/m-p/659837#M9751</link>
      <description>&lt;P&gt;Why do you escape the quotes? You don't need to do that.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 18:13:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-multiple-EXTRACT-single-GROUP-name/m-p/659837#M9751</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-10-05T18:13:18Z</dc:date>
    </item>
  </channel>
</rss>

