<?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 edit my search to return results from all countries but exclude a few states? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-return-results-from-all-countries-but/m-p/284753#M86109</link>
    <description>&lt;P&gt;I created the following search query to cross search for users who successfully log in to a website and also received an email from a&lt;BR /&gt;
specific sender (at the bottom), and I'm trying to filter out a few states. If I remove the &lt;CODE&gt;| search state!=PA  state!=OH  state!=10&lt;/CODE&gt; section the query runs and I see users logging in from both the US and outside the US.&lt;/P&gt;

&lt;P&gt;However, with the &lt;CODE&gt;| search state!=PA  state!=OH  state!=10&lt;/CODE&gt; section in the search, my search is limited to only US based countries and countries outside the US are no longer listed in the results.&lt;/P&gt;

&lt;P&gt;How can I return all countries and exclude a few states? I think my query isn't taking the fact that some countries do not have a state associated with them.&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xxx url="https://xxx.xxx.xxx  NOT (x* OR x.y.* OR x.y.* OR x.y.* OR x.y.*) [search index=xxx SenderAddress="xxx@abc.com" |dedup user | fields user] | geoip "src_ip" | rename "src_ip"_latitude as "lat" | rename "src_ip"_longitude as "long" | rename "src_ip"_country_code as "country" | rename "src_ip"_region_name as "state" | table  _time user country state src_ip
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 19 Dec 2016 16:31:20 GMT</pubDate>
    <dc:creator>jwalzerpitt</dc:creator>
    <dc:date>2016-12-19T16:31:20Z</dc:date>
    <item>
      <title>How to edit my search to return results from all countries but exclude a few states?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-return-results-from-all-countries-but/m-p/284753#M86109</link>
      <description>&lt;P&gt;I created the following search query to cross search for users who successfully log in to a website and also received an email from a&lt;BR /&gt;
specific sender (at the bottom), and I'm trying to filter out a few states. If I remove the &lt;CODE&gt;| search state!=PA  state!=OH  state!=10&lt;/CODE&gt; section the query runs and I see users logging in from both the US and outside the US.&lt;/P&gt;

&lt;P&gt;However, with the &lt;CODE&gt;| search state!=PA  state!=OH  state!=10&lt;/CODE&gt; section in the search, my search is limited to only US based countries and countries outside the US are no longer listed in the results.&lt;/P&gt;

&lt;P&gt;How can I return all countries and exclude a few states? I think my query isn't taking the fact that some countries do not have a state associated with them.&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xxx url="https://xxx.xxx.xxx  NOT (x* OR x.y.* OR x.y.* OR x.y.* OR x.y.*) [search index=xxx SenderAddress="xxx@abc.com" |dedup user | fields user] | geoip "src_ip" | rename "src_ip"_latitude as "lat" | rename "src_ip"_longitude as "long" | rename "src_ip"_country_code as "country" | rename "src_ip"_region_name as "state" | table  _time user country state src_ip
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Dec 2016 16:31:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-return-results-from-all-countries-but/m-p/284753#M86109</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-12-19T16:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to return results from all countries but exclude a few states?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-return-results-from-all-countries-but/m-p/284754#M86110</link>
      <description>&lt;P&gt;You could fill your null values. So before you do '| search state!=PA state!=OH state!=10', do ' | fillnull value=NULL state |  '.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 16:51:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-return-results-from-all-countries-but/m-p/284754#M86110</guid>
      <dc:creator>chrishartsock</dc:creator>
      <dc:date>2016-12-19T16:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to return results from all countries but exclude a few states?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-return-results-from-all-countries-but/m-p/284755#M86111</link>
      <description>&lt;P&gt;That worked - thx for he help!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 17:01:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-return-results-from-all-countries-but/m-p/284755#M86111</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-12-19T17:01:13Z</dc:date>
    </item>
  </channel>
</rss>

