<?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: SPL for adding /32 to all addresses returned in a search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/SPL-for-adding-32-to-all-addresses-returned-in-a-search/m-p/679441#M232281</link>
    <description>&lt;P&gt;You should accept ptrsnks answer not your reply.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 05:57:09 GMT</pubDate>
    <dc:creator>jotne</dc:creator>
    <dc:date>2024-03-04T05:57:09Z</dc:date>
    <item>
      <title>SPL for adding /32 to all addresses returned in a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-for-adding-32-to-all-addresses-returned-in-a-search/m-p/679430#M232275</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am running a search that is returning IP addresses that are being sent to a waf (web access firewall).&amp;nbsp; The waf requires all IP addresses to be written in CIDR notation.&amp;nbsp; I am just returning single IPs ,so I have to add a /32 to each address that I submit.&lt;/P&gt;&lt;P&gt;I am using the stats command, looking at different parameters and them counting by IP to provide the list I am submitting.&amp;nbsp; It seems like it should be straight forward using concatenation, but I haven't been able to get to a solution.&lt;/P&gt;&lt;P&gt;eval&amp;nbsp; cidr_address=remoteIP + "/32" and varieties&amp;nbsp; of this approach(casting to string etc)&amp;nbsp; haven't worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any help anyone can provide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 00:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-for-adding-32-to-all-addresses-returned-in-a-search/m-p/679430#M232275</guid>
      <dc:creator>ptrsnk</dc:creator>
      <dc:date>2024-03-04T00:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: SPL for adding /32 to all addresses returned in a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-for-adding-32-to-all-addresses-returned-in-a-search/m-p/679433#M232276</link>
      <description>&lt;P&gt;Have you tried using the other concatenation operator - dot vs plus?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 01:11:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-for-adding-32-to-all-addresses-returned-in-a-search/m-p/679433#M232276</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-03-04T01:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: SPL for adding /32 to all addresses returned in a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-for-adding-32-to-all-addresses-returned-in-a-search/m-p/679436#M232277</link>
      <description>&lt;P&gt;Yes I tried the .(dot)&lt;/P&gt;&lt;P&gt;| eval&amp;nbsp; cird_address=remoteIP ./32&lt;BR /&gt;&lt;SPAN&gt;Error in 'EvalCommand': The expression is malformed. An unexpected character is reached at '/32'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;| eval&amp;nbsp; cird_address=remoteIP ."/32"&lt;/P&gt;&lt;P&gt;This one does NOT show&amp;nbsp; an error, but i get no results.&amp;nbsp; &amp;nbsp;Maybe there is something farther down in the search that's not correct.&lt;/P&gt;&lt;P&gt;I check that and respond again.&lt;/P&gt;&lt;P&gt;Thanks for your sugestion&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 02:04:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-for-adding-32-to-all-addresses-returned-in-a-search/m-p/679436#M232277</guid>
      <dc:creator>ptrsnk</dc:creator>
      <dc:date>2024-03-04T02:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: SPL for adding /32 to all addresses returned in a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-for-adding-32-to-all-addresses-returned-in-a-search/m-p/679439#M232279</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't get "&lt;SPAN&gt;cird_address=remoteIP ."/32"" to work in my search. I created a more simple search and it worked fine.&amp;nbsp; Your suggestion was correct.&amp;nbsp; I need to do more work on my search.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 02:38:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-for-adding-32-to-all-addresses-returned-in-a-search/m-p/679439#M232279</guid>
      <dc:creator>ptrsnk</dc:creator>
      <dc:date>2024-03-04T02:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: SPL for adding /32 to all addresses returned in a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-for-adding-32-to-all-addresses-returned-in-a-search/m-p/679441#M232281</link>
      <description>&lt;P&gt;You should accept ptrsnks answer not your reply.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 05:57:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-for-adding-32-to-all-addresses-returned-in-a-search/m-p/679441#M232281</guid>
      <dc:creator>jotne</dc:creator>
      <dc:date>2024-03-04T05:57:09Z</dc:date>
    </item>
  </channel>
</rss>

