<?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: Global Tokens in Searches in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Global-Tokens-in-Searches/m-p/587696#M103216</link>
    <description>&lt;P&gt;i know this is and old post but does it still work in 8.2&lt;/P&gt;&lt;P&gt;also if someone could give an example of how to fill out the macro. I am also looking for a way to reference a list of IP's but the macro does not seem to work or i am using it incorrectly&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 18:14:21 GMT</pubDate>
    <dc:creator>tazzvon</dc:creator>
    <dc:date>2022-03-04T18:14:21Z</dc:date>
    <item>
      <title>Global Tokens in Searches</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Global-Tokens-in-Searches/m-p/546439#M91015</link>
      <description>&lt;P&gt;I'm an occasional Splunk Enterprise user so forgive me if this is a noob question or has been answred before:&lt;/P&gt;&lt;P&gt;We use Qualys to scan our systems daily for vunerabilties. As such, on things like web servers it generates a lot of logs entries as it scans endpoints. At times it might crawl a website for example generating a lot of failed requests as it creates ad-hoc GET requests to try and see what to can return from the site.&lt;/P&gt;&lt;P&gt;As such, I have a requirment to build queries that exclude log entries with the scanners IP address therein. The thing is this IP (or rather IPs) are growing as we introduce slave nodes to scan our network.&lt;/P&gt;&lt;P&gt;What I would like to do is the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color="#008000"&gt;have our query creators use a token that is a list of the Qualys scanner IP addresses and use that as an exclusion in their search macros e.g. &lt;FONT color="#993366"&gt;index=iis | c_ip NOT ($myglobaltoken)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;The thing is though I want this token defined &lt;FONT color="#993366"&gt;&lt;STRONG&gt;globally&lt;/STRONG&gt; &lt;/FONT&gt;by the admin team so we can update the values in it and thus all queries (in different apps etc.) referencing it are updated thus.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 21:11:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Global-Tokens-in-Searches/m-p/546439#M91015</guid>
      <dc:creator>shocko</dc:creator>
      <dc:date>2021-04-01T21:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Global Tokens in Searches</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Global-Tokens-in-Searches/m-p/546460#M91017</link>
      <description>&lt;P&gt;One way to do that is with a macro.&amp;nbsp; Define a macro with the list of IP addresses in it.&amp;nbsp; Make sure it is syntactically correct.&amp;nbsp; Share the macro Globally.&amp;nbsp; Then users just need to use the macro in their searches.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=iis | c_ip NOT `myglobaltoken`&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Apr 2021 00:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Global-Tokens-in-Searches/m-p/546460#M91017</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-04-02T00:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Global Tokens in Searches</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Global-Tokens-in-Searches/m-p/547168#M91081</link>
      <description>&lt;P&gt;Thanks! Not sure why I didn't think of that!? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 08:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Global-Tokens-in-Searches/m-p/547168#M91081</guid>
      <dc:creator>shocko</dc:creator>
      <dc:date>2021-04-08T08:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Global Tokens in Searches</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Global-Tokens-in-Searches/m-p/587696#M103216</link>
      <description>&lt;P&gt;i know this is and old post but does it still work in 8.2&lt;/P&gt;&lt;P&gt;also if someone could give an example of how to fill out the macro. I am also looking for a way to reference a list of IP's but the macro does not seem to work or i am using it incorrectly&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 18:14:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Global-Tokens-in-Searches/m-p/587696#M103216</guid>
      <dc:creator>tazzvon</dc:creator>
      <dc:date>2022-03-04T18:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Global Tokens in Searches</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Global-Tokens-in-Searches/m-p/587699#M103217</link>
      <description>&lt;P&gt;Yes, it still works in 8.2.&lt;/P&gt;&lt;P&gt;Please post a new question showing what you've tried and the results from those attempts.&amp;nbsp; Feel free to refer to this question in yours.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 18:54:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Global-Tokens-in-Searches/m-p/587699#M103217</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-03-04T18:54:51Z</dc:date>
    </item>
  </channel>
</rss>

