<?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: Defining variables or constants in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Defining-variables-or-constants/m-p/37727#M8501</link>
    <description>&lt;P&gt;Thx will give it a shot!&lt;/P&gt;</description>
    <pubDate>Fri, 27 Apr 2012 01:31:58 GMT</pubDate>
    <dc:creator>tachu</dc:creator>
    <dc:date>2012-04-27T01:31:58Z</dc:date>
    <item>
      <title>Defining variables or constants</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Defining-variables-or-constants/m-p/37725#M8499</link>
      <description>&lt;P&gt;I would like to be able to have a predefined variable or constant to run queries with by example&lt;/P&gt;

&lt;P&gt;source="syslog" login ip!=OFFICEIPS&lt;/P&gt;

&lt;P&gt;where OFFICEIPS is a set of ip's&lt;/P&gt;

&lt;P&gt;that way it wont require for us to know all ips every time we do a search but just mantain a table or variable every time a new subnet is added &lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2012 00:35:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Defining-variables-or-constants/m-p/37725#M8499</guid>
      <dc:creator>tachu</dc:creator>
      <dc:date>2012-04-27T00:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Defining variables or constants</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Defining-variables-or-constants/m-p/37726#M8500</link>
      <description>&lt;P&gt;You can use a lookup and reference them from a file. &lt;/P&gt;

&lt;P&gt;Documentation here with an example:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/knowledge/Addfieldsfromexternaldatasources"&gt;http://docs.splunk.com/Documentation/Splunk/latest/knowledge/Addfieldsfromexternaldatasources&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Similar question with details here:&lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/38520/how-to-generate-a-report-for-searching-the-request-from-huge-list-of-ips"&gt;http://splunk-base.splunk.com/answers/38520/how-to-generate-a-report-for-searching-the-request-from-huge-list-of-ips&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2012 01:12:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Defining-variables-or-constants/m-p/37726#M8500</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-04-27T01:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Defining variables or constants</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Defining-variables-or-constants/m-p/37727#M8501</link>
      <description>&lt;P&gt;Thx will give it a shot!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2012 01:31:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Defining-variables-or-constants/m-p/37727#M8501</guid>
      <dc:creator>tachu</dc:creator>
      <dc:date>2012-04-27T01:31:58Z</dc:date>
    </item>
  </channel>
</rss>

