<?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: How to set up an alert to trigger when a site has multiple versions? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-to-trigger-when-a-site-has-multiple/m-p/171824#M49250</link>
    <description>&lt;P&gt;Sorry about that. Added it in.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2015 23:14:58 GMT</pubDate>
    <dc:creator>KindaWorking</dc:creator>
    <dc:date>2015-03-09T23:14:58Z</dc:date>
    <item>
      <title>How to set up an alert to trigger when a site has multiple versions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-to-trigger-when-a-site-has-multiple/m-p/171820#M49246</link>
      <description>&lt;P&gt;I have a table that shows something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Site X          V 1.1
                V 1.2
                V 1.3

Site Y          V 1.3

Site Z          V 1.2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want an alert to show me when a site has multiple versions. I cannot not quite get my search correct.&lt;/P&gt;

&lt;P&gt;The search I am currently using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbquery "SQLDB" "SELECT * FROM TABLE WHERE StatusType="Version" ORDER BY SITES"|Stats values(StatusValue) by SITES
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Mar 2015 21:17:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-to-trigger-when-a-site-has-multiple/m-p/171820#M49246</guid>
      <dc:creator>KindaWorking</dc:creator>
      <dc:date>2015-03-09T21:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up an alert to trigger when a site has multiple versions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-to-trigger-when-a-site-has-multiple/m-p/171821#M49247</link>
      <description>&lt;P&gt;Hi @KindaWorking&lt;/P&gt;

&lt;P&gt;Can you share the actual search you're using so users can see how you're generating your current results and how they can edit it to help you? &lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 21:36:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-to-trigger-when-a-site-has-multiple/m-p/171821#M49247</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2015-03-09T21:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up an alert to trigger when a site has multiple versions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-to-trigger-when-a-site-has-multiple/m-p/171822#M49248</link>
      <description>&lt;P&gt;Assuming the table above you have the columns: siteName and siteVersion, and assuming the siteVersion is a multi-value field you could use the function &lt;CODE&gt;mvcount&lt;/CODE&gt;. Something like that:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... &amp;lt;YOUR SEARCH&amp;gt; | where mvcount(siteVersion) &amp;gt; 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That would list only sites with multiple versions, so you could setup your alert based on that.&lt;/P&gt;

&lt;P&gt;ps.: I've assumed lots of things as there was no much information provided.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 22:29:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-to-trigger-when-a-site-has-multiple/m-p/171822#M49248</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2015-03-09T22:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up an alert to trigger when a site has multiple versions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-to-trigger-when-a-site-has-multiple/m-p/171823#M49249</link>
      <description>&lt;P&gt;Sorry about being so vague. I have updated my question to include the search string I am using. I am going to try to incorporate the mcvount into my search and see how I go.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 23:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-to-trigger-when-a-site-has-multiple/m-p/171823#M49249</guid>
      <dc:creator>KindaWorking</dc:creator>
      <dc:date>2015-03-09T23:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up an alert to trigger when a site has multiple versions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-to-trigger-when-a-site-has-multiple/m-p/171824#M49250</link>
      <description>&lt;P&gt;Sorry about that. Added it in.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 23:14:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-to-trigger-when-a-site-has-multiple/m-p/171824#M49250</guid>
      <dc:creator>KindaWorking</dc:creator>
      <dc:date>2015-03-09T23:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up an alert to trigger when a site has multiple versions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-to-trigger-when-a-site-has-multiple/m-p/171825#M49251</link>
      <description>&lt;P&gt;It should work, as the &lt;CODE&gt;values&lt;/CODE&gt; function you're using will produce a multi-value field. I would only suggest to rename it, like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats values(StatusValue) AS siteVersion by SITES | where mvcount(siteVersion) &amp;gt; 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Mar 2015 23:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-to-trigger-when-a-site-has-multiple/m-p/171825#M49251</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2015-03-09T23:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up an alert to trigger when a site has multiple versions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-to-trigger-when-a-site-has-multiple/m-p/171826#M49252</link>
      <description>&lt;P&gt;You are my hero!&lt;BR /&gt;
That works perfectly.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 23:28:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-to-trigger-when-a-site-has-multiple/m-p/171826#M49252</guid>
      <dc:creator>KindaWorking</dc:creator>
      <dc:date>2015-03-09T23:28:50Z</dc:date>
    </item>
  </channel>
</rss>

