<?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: Make sure Value from one specific event is not in any other events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604508#M210270</link>
    <description>&lt;P&gt;Based on your illustrations 1 and 2, I think ITWhisperer's method should work, like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=servers (server=backups OR server=*Database*)
| eventstats values(server) as servergroup by Storage
| where isnull(mvfind(servergroup, backups))&lt;/LI-CODE&gt;&lt;P&gt;Basically, eventstats groups servers based on Storage they use; mvfind() selects those servers that uses the same Storage as used by "backups". &amp;nbsp;Then, isnull() negates the find to pick out those that do not use that storage.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2022 23:18:26 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2022-07-05T23:18:26Z</dc:date>
    <item>
      <title>Make sure Value from one specific event is not in any other events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604463#M210251</link>
      <description>&lt;P&gt;I can't wrap my head around how to do this search.&amp;nbsp; It's like I need an array or variable.&lt;/P&gt;&lt;P&gt;Example Data:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Hostname&lt;/TD&gt;&lt;TD&gt;Storage&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;BackupServer&lt;/TD&gt;&lt;TD width="50%"&gt;BackupStorage&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Database1&lt;/TD&gt;&lt;TD width="50%"&gt;Storage1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Database2&lt;/TD&gt;&lt;TD width="50%"&gt;Storage2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Database3&lt;/TD&gt;&lt;TD width="50%"&gt;BackupStorage&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I say, show me a list of all servers using BackupServer[Storage], I dont know the name of backup storage in advance. All I know is the hostname is like Backupserver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 15:26:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604463#M210251</guid>
      <dc:creator>splunk219783</dc:creator>
      <dc:date>2022-07-05T15:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Make sure Value from one specific event is not in any other events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604468#M210253</link>
      <description>&lt;P&gt;Do you mean something like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eventstats values(Hostname) as hosts by Storage
| where isnotnull(mvfind(hosts,"BackupServer"))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Jul 2022 15:49:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604468#M210253</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-07-05T15:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Make sure Value from one specific event is not in any other events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604476#M210257</link>
      <description>&lt;P&gt;When I try that I just get my BackupServer.&amp;nbsp; I shouldn't clarified, i'd like a search that only Shows me Database3 in the example dataset, but without knowing the Storage is "BackupStorage" to begin with.&amp;nbsp; I need to lookup the datastore of backupserver, then make sure none of the others are on there.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 16:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604476#M210257</guid>
      <dc:creator>splunk219783</dc:creator>
      <dc:date>2022-07-05T16:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Make sure Value from one specific event is not in any other events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604479#M210259</link>
      <description>&lt;P&gt;I am not sure I understand your requirement - do you know the name of the BackupServer or not?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eventstats values(Hostname) as hosts by Storage
| where isnotnull(mvfind(hosts,"BackupServer")) AND Hostname!="BackupServer"&lt;/LI-CODE&gt;&lt;P&gt;If not, how do you identify which host is being used for backup storage?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 16:43:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604479#M210259</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-07-05T16:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Make sure Value from one specific event is not in any other events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604482#M210261</link>
      <description>&lt;PRE&gt;&amp;lt;your search&amp;gt;&lt;BR /&gt;| stats values(Hostname) as Hostname by Storage&lt;BR /&gt;| where Hostname="BackupServer"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 16:49:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604482#M210261</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-07-05T16:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Make sure Value from one specific event is not in any other events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604485#M210262</link>
      <description>&lt;P&gt;I apologize if I'm being confusing. Let me try to explain it better.&amp;nbsp;&amp;nbsp; This backup server backups databases.&amp;nbsp; I need to make sure none of the databases are on the same storage as the backup server.&amp;nbsp; Because if we lost that storage we would lose both our backups and the database.&lt;/P&gt;&lt;P&gt;Here's the steps i'm trying to do with SPL.&lt;/P&gt;&lt;P&gt;1. Lookup what storage BackupServer is using with a search.&amp;nbsp; Something like a&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=servers server=backups | fields Storage&lt;/LI-CODE&gt;&lt;P&gt;2. Make sure No Databases are using that Storage.&amp;nbsp; I do not know which storage the backup server will be on, it could move around.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=servers server=*Database* storage!=[Storagestringfromabove]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the search i've thrown together so far.&amp;nbsp; The only way I can think of to accomplish 1 &amp;amp; 2, is to output my backup storage to a lookup table, then look for a match.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=servers source=*vmdk* VM=*database*| fields Datastore VM
| search [inputlookup backup_server.csv | fields Datastore]
| table VM Datastore &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Jul 2022 17:05:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604485#M210262</guid>
      <dc:creator>splunk219783</dc:creator>
      <dc:date>2022-07-05T17:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Make sure Value from one specific event is not in any other events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604487#M210263</link>
      <description>&lt;P&gt;This line creates a list of all the host which share the same storage by storage name&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eventstats values(Hostname) as hosts by Storage&lt;/LI-CODE&gt;&lt;P&gt;This line picks out the hosts which share the same storage as BackupServer&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where isnotnull(mvfind(hosts,"BackupServer")) AND Hostname!="BackupServer"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;How is that not what you have asked for?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 17:28:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604487#M210263</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-07-05T17:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Make sure Value from one specific event is not in any other events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604508#M210270</link>
      <description>&lt;P&gt;Based on your illustrations 1 and 2, I think ITWhisperer's method should work, like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=servers (server=backups OR server=*Database*)
| eventstats values(server) as servergroup by Storage
| where isnull(mvfind(servergroup, backups))&lt;/LI-CODE&gt;&lt;P&gt;Basically, eventstats groups servers based on Storage they use; mvfind() selects those servers that uses the same Storage as used by "backups". &amp;nbsp;Then, isnull() negates the find to pick out those that do not use that storage.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 23:18:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604508#M210270</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-07-05T23:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Make sure Value from one specific event is not in any other events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604927#M210387</link>
      <description>&lt;P&gt;Apologies for the delayed response, I was out of the office for a few days.&amp;nbsp; Your example does work, thank you! I must've had a typo or something initially.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 12:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Make-sure-Value-from-one-specific-event-is-not-in-any-other/m-p/604927#M210387</guid>
      <dc:creator>splunk219783</dc:creator>
      <dc:date>2022-07-08T12:21:33Z</dc:date>
    </item>
  </channel>
</rss>

