<?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: How to extract IDs? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-IDs/m-p/640013#M221779</link>
    <description>&lt;P&gt;|makeresults&lt;BR /&gt;| eval APM_ID = "ABCDE-FVG-HH HBBB-NDBXB-SM A1001 SBSKS A0002 JJSKM"&lt;BR /&gt;| rex max_match=0 field=APM_ID "(?&amp;lt;APM&amp;gt;A\d{4})"&lt;/P&gt;</description>
    <pubDate>Fri, 14 Apr 2023 20:34:20 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2023-04-14T20:34:20Z</dc:date>
    <item>
      <title>How to extract IDs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-IDs/m-p/639931#M221752</link>
      <description>&lt;P&gt;I have a field called APM_ID and i want to get the output for only APMs from this field (for eg: A1002, A0001) and want to group the rest of the output as "shared service". What query can i write for the desired output?&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%" height="25px"&gt;&lt;STRONG&gt;APM_ID&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="25px"&gt;ABCDE-FVG-HH&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="25px"&gt;HBBB-NDBXB-SM&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="25px"&gt;A1001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="25px"&gt;SBSKS&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="25px"&gt;A0002&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="25px"&gt;JJSKM&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="25px"&gt;
&lt;P&gt;A0009&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="25px"&gt;A2002&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Fri, 14 Apr 2023 16:33:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-IDs/m-p/639931#M221752</guid>
      <dc:creator>beepbop</dc:creator>
      <dc:date>2023-04-14T16:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting IDs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-IDs/m-p/639936#M221754</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247790"&gt;@beepbop&lt;/a&gt;&amp;nbsp; The following would group by id or "shared service", the regex may need to be a bit more strict depending on the field values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval APM_ID_GROUP=if(match(APM_ID, "^[A-Z]\d+$"), APM_ID, "shared service")
| stats values(APM_ID) as APM_ID by APM_ID_GROUP&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 12:11:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-IDs/m-p/639936#M221754</guid>
      <dc:creator>rut</dc:creator>
      <dc:date>2023-04-14T12:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract IDs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-IDs/m-p/640013#M221779</link>
      <description>&lt;P&gt;|makeresults&lt;BR /&gt;| eval APM_ID = "ABCDE-FVG-HH HBBB-NDBXB-SM A1001 SBSKS A0002 JJSKM"&lt;BR /&gt;| rex max_match=0 field=APM_ID "(?&amp;lt;APM&amp;gt;A\d{4})"&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 20:34:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-IDs/m-p/640013#M221779</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-14T20:34:20Z</dc:date>
    </item>
  </channel>
</rss>

