<?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: Automatically add ORs between IPs for Dashboard in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Automatically-add-ORs-between-IPs-for-Dashboard/m-p/272239#M190175</link>
    <description>&lt;P&gt;If you put this in your macros.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ORify(1)]
args = x
definition = replace("$x$", "\s+", " OR ")
iseval = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you can paste your space-separated list of IPs into a text field and run this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* ( `ORify($IP_token$)` )
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 01 Apr 2016 16:42:54 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2016-04-01T16:42:54Z</dc:date>
    <item>
      <title>Automatically add ORs between IPs for Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatically-add-ORs-between-IPs-for-Dashboard/m-p/272237#M190173</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;

&lt;P&gt;Suppose I get a list of IPs once a week and I want to search all the indexes for these IPs. Is it possible to take a list of IPs, paste them into a field on a dashboard, click Submit to search all of the indexes (or maybe one or two from a dropdown) for any events? This includes Splunk automatically adding ORs between each IP.&lt;/P&gt;

&lt;P&gt;Ideally, I want to copy and paste into a field, click submit and run the following query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search index=* ( 10.0.0.1 OR 10.0.0.2 OR 10.0.0.3 )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Those results would be populated into a statistics table. Is there a more efficient way or is this even possible?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 16:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatically-add-ORs-between-IPs-for-Dashboard/m-p/272237#M190173</guid>
      <dc:creator>CYBR_AH</dc:creator>
      <dc:date>2016-04-01T16:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically add ORs between IPs for Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatically-add-ORs-between-IPs-for-Dashboard/m-p/272238#M190174</link>
      <description>&lt;P&gt;You can paste into a &lt;CODE&gt;IPs.csv&lt;/CODE&gt; file with a header line that says &lt;CODE&gt;IP_Address&lt;/CODE&gt;, upload the file as a &lt;CODE&gt;lookup table&lt;/CODE&gt;, then do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* [|inputcsv IP.csv | rename IP_Address AS query]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Apr 2016 16:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatically-add-ORs-between-IPs-for-Dashboard/m-p/272238#M190174</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-04-01T16:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically add ORs between IPs for Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatically-add-ORs-between-IPs-for-Dashboard/m-p/272239#M190175</link>
      <description>&lt;P&gt;If you put this in your macros.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ORify(1)]
args = x
definition = replace("$x$", "\s+", " OR ")
iseval = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you can paste your space-separated list of IPs into a text field and run this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* ( `ORify($IP_token$)` )
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Apr 2016 16:42:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatically-add-ORs-between-IPs-for-Dashboard/m-p/272239#M190175</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-04-01T16:42:54Z</dc:date>
    </item>
  </channel>
</rss>

