<?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: Grouping IP subnet and also show the IPs that it has grouped in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Grouping-IP-subnet-and-also-show-the-IPs-that-it-has-grouped/m-p/747476#M241827</link>
    <description>&lt;P&gt;It would be helpful to know what you've tried already and those efforts failed to meet expectations.&lt;/P&gt;&lt;P&gt;Perhaps this will help.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=SourceIP "(?&amp;lt;Subnet&amp;gt;\d+\.\d+\.\d+\.*)"
| stats count as Count, values(SourceIP) as IPs by Subnet&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 04 Jun 2025 15:22:59 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2025-06-04T15:22:59Z</dc:date>
    <item>
      <title>Grouping IP subnet and also show the IPs that it has grouped</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-IP-subnet-and-also-show-the-IPs-that-it-has-grouped/m-p/747473#M241826</link>
      <description>&lt;P&gt;I currently have this to group IPs into subnets and list the counts, I want it to also show the IP it has listed aswell&lt;/P&gt;&lt;P&gt;| rex field=SourceIP "(?&amp;lt;Subnet&amp;gt;\d+\.\d+\.\d+\.*)"&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;Subnet&amp;nbsp; &amp;nbsp; Count&amp;nbsp; &amp;nbsp;IPs&lt;/P&gt;&lt;P&gt;1.1.1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.1.1.1, 1.1.1.2,1.1.1.3&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How do I create another field or use the existing field to show what it has grouped?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:43:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-IP-subnet-and-also-show-the-IPs-that-it-has-grouped/m-p/747473#M241826</guid>
      <dc:creator>anlePRH</dc:creator>
      <dc:date>2025-06-04T14:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping IP subnet and also show the IPs that it has grouped</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-IP-subnet-and-also-show-the-IPs-that-it-has-grouped/m-p/747476#M241827</link>
      <description>&lt;P&gt;It would be helpful to know what you've tried already and those efforts failed to meet expectations.&lt;/P&gt;&lt;P&gt;Perhaps this will help.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=SourceIP "(?&amp;lt;Subnet&amp;gt;\d+\.\d+\.\d+\.*)"
| stats count as Count, values(SourceIP) as IPs by Subnet&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:22:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-IP-subnet-and-also-show-the-IPs-that-it-has-grouped/m-p/747476#M241827</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-06-04T15:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping IP subnet and also show the IPs that it has grouped</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-IP-subnet-and-also-show-the-IPs-that-it-has-grouped/m-p/747484#M241828</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/276108"&gt;@anlePRH&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you already producing the table you shared in your original post, or is that what you are wanting to get to?&lt;/P&gt;&lt;P&gt;You should be able to use the following after your REX:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats list(SourceIP) as IPs, count as Count by Subnet&lt;/LI-CODE&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>Wed, 04 Jun 2025 16:15:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-IP-subnet-and-also-show-the-IPs-that-it-has-grouped/m-p/747484#M241828</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-06-04T16:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping IP subnet and also show the IPs that it has grouped</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-IP-subnet-and-also-show-the-IPs-that-it-has-grouped/m-p/747558#M241840</link>
      <description>&lt;P&gt;In this case values(SourceIP) might be more desirable than list(SourceIP). The former will show unique values while the latter will show a list of fields, however many times they appear.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 10:30:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-IP-subnet-and-also-show-the-IPs-that-it-has-grouped/m-p/747558#M241840</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-06-05T10:30:55Z</dc:date>
    </item>
  </channel>
</rss>

