<?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 How to get ip objects from a Splunk list? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-objects-from-a-Splunk-list/m-p/614043#M213385</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an output list like this one:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "10.10.10.15": {
    "High": [
      {
        "name": "vu1",
        "nvt_id": "123",
        "port": "",
        "protocol": ""
      }
    ],
    "Medium": [],
    "Low": [],
    "Log": [],
    "False Positive": []
  },
  "10.10.10.24": {
    "High": [
      {
        "name": "vul",
        "nvt_id": "123",
        "port": "",
        "protocol": ""
      }
    ],
    "Medium": [],
    "Low": [],
    "Log": [],
    "False Positive": []
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to get All the IP address and extract the fields in each object.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2022 14:41:22 GMT</pubDate>
    <dc:creator>splunknewuser</dc:creator>
    <dc:date>2022-09-29T14:41:22Z</dc:date>
    <item>
      <title>How to get ip objects from a Splunk list?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-objects-from-a-Splunk-list/m-p/614043#M213385</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an output list like this one:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "10.10.10.15": {
    "High": [
      {
        "name": "vu1",
        "nvt_id": "123",
        "port": "",
        "protocol": ""
      }
    ],
    "Medium": [],
    "Low": [],
    "Log": [],
    "False Positive": []
  },
  "10.10.10.24": {
    "High": [
      {
        "name": "vul",
        "nvt_id": "123",
        "port": "",
        "protocol": ""
      }
    ],
    "Medium": [],
    "Low": [],
    "Log": [],
    "False Positive": []
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to get All the IP address and extract the fields in each object.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 14:41:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-objects-from-a-Splunk-list/m-p/614043#M213385</guid>
      <dc:creator>splunknewuser</dc:creator>
      <dc:date>2022-09-29T14:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get ip objects from a splunk list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-objects-from-a-Splunk-list/m-p/614054#M213391</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249712"&gt;@splunknewuser&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you tried with the spath command (&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/9.0.2205/SearchReference/Spath" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/9.0.2205/SearchReference/Spath&lt;/A&gt;)?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 08:13:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-objects-from-a-Splunk-list/m-p/614054#M213391</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-22T08:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get ip objects from a splunk list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-objects-from-a-Splunk-list/m-p/615116#M213769</link>
      <description>&lt;P&gt;I tried it but the issue is that the ip has now key?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 07:33:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-objects-from-a-Splunk-list/m-p/615116#M213769</guid>
      <dc:creator>splunknewuser</dc:creator>
      <dc:date>2022-09-29T07:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ip objects from a splunk list?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-objects-from-a-Splunk-list/m-p/615143#M213780</link>
      <description>&lt;P&gt;I tried to use rex to get the ip addresses:&lt;/P&gt;&lt;P&gt;rex "(?&amp;lt;IP_add&amp;gt;10\.([0-9]{1,3}.){2}[0-9]{1,3})" | table "IP_add".High{}.name&lt;/P&gt;&lt;P&gt;Is it possible to fetch the values of the array using the rex output like that:&lt;/P&gt;&lt;P&gt;rex "(?&amp;lt;ip_add&amp;gt;10\.([0-9]{1,3}.){2}[0-9]{1,3})" | table ip_add.High{}.name&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 08:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-objects-from-a-Splunk-list/m-p/615143#M213780</guid>
      <dc:creator>splunknewuser</dc:creator>
      <dc:date>2022-09-29T08:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ip objects from a splunk list?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-objects-from-a-Splunk-list/m-p/615145#M213782</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249712"&gt;@splunknewuser&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you ise IP-Add as field name, you have to contniue to use it, if you want a different field name, youcan rename it, but you cannot extract a field called IP_add and the in the table use a different one "&lt;SPAN&gt;&amp;nbsp;ip_add.High{}.name".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then it isn't a good idea to have spaces or special chars (like . or {}) in field names.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 09:05:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-objects-from-a-Splunk-list/m-p/615145#M213782</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-29T09:05:54Z</dc:date>
    </item>
  </channel>
</rss>

