<?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: Help to Write the Custom Query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-to-Write-the-Custom-Query/m-p/117537#M183994</link>
    <description>&lt;P&gt;Other than that &lt;CODE&gt;Where&lt;/CODE&gt; should be &lt;CODE&gt;where&lt;/CODE&gt;, your search looks fine to me (assuming, as @rphillips_splunk said, the stuff before &lt;CODE&gt;where&lt;/CODE&gt; is OK)&lt;/P&gt;</description>
    <pubDate>Sun, 24 May 2015 04:57:13 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-05-24T04:57:13Z</dc:date>
    <item>
      <title>Help to Write the Custom Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-to-Write-the-Custom-Query/m-p/117533#M183990</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;

&lt;P&gt;I am creating the custom search in ES app , &lt;/P&gt;

&lt;P&gt;| tstats allow_old_summaries=true dc(Authentication.src) as "Source",dc(Authentication.user) as "User" from datamodel=Authentication where   nodename=Authentication.Successful_Authentication  by "Authentication.user","Authentication.src" | rename "Authentication.user" as "User","Authentication.src" as "Source" | Where User="x" AND Source!="a" AND Source!="b"  AND Source!="c" &lt;/P&gt;

&lt;P&gt;Result : Above query is not working as expected.&lt;/P&gt;

&lt;P&gt;I have a User=x which can be authenticated from 3 source.&lt;/P&gt;

&lt;P&gt;I need to create the alert if user login from other than this 3 source , I should get the alert . Kindly help to enhance the query.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:00:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-to-Write-the-Custom-Query/m-p/117533#M183990</guid>
      <dc:creator>sumit29</dc:creator>
      <dc:date>2020-09-28T20:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help to Write the Custom Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-to-Write-the-Custom-Query/m-p/117534#M183991</link>
      <description>&lt;P&gt;try backing out of your search and respond with where it is failing. For example take off:&lt;BR /&gt;
| Where User="x" AND Source!="a" AND Source!="b" AND Source!="c"&lt;/P&gt;

&lt;P&gt;what are the results of the search at that point? If it still fails take off more of the search so we can see what works and what doesn't. &lt;/P&gt;

&lt;P&gt;as a first guess I would try replacing&lt;/P&gt;

&lt;P&gt;| Where User="x" AND Source!="a" AND Source!="b" AND Source!="c"&lt;/P&gt;

&lt;P&gt;with&lt;/P&gt;

&lt;P&gt;| search User="x" Source!="a" OR Source!="b" OR Source!="c"&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2015 17:07:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-to-Write-the-Custom-Query/m-p/117534#M183991</guid>
      <dc:creator>rphillips_splk</dc:creator>
      <dc:date>2015-05-22T17:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help to Write the Custom Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-to-Write-the-Custom-Query/m-p/117535#M183992</link>
      <description>&lt;P&gt;The &lt;CODE&gt;AND&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;OR&lt;/CODE&gt; is definitely wrong.&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2015 04:16:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-to-Write-the-Custom-Query/m-p/117535#M183992</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-24T04:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help to Write the Custom Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-to-Write-the-Custom-Query/m-p/117536#M183993</link>
      <description>&lt;P&gt;Thanks rphillips,&lt;BR /&gt;&lt;BR /&gt;
I haven't tried the query as its weekend .will try on Monday&lt;/P&gt;

&lt;P&gt;@woodcock - can u extend ur help in writing the query .Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2015 04:27:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-to-Write-the-Custom-Query/m-p/117536#M183993</guid>
      <dc:creator>sumit29</dc:creator>
      <dc:date>2015-05-24T04:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help to Write the Custom Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-to-Write-the-Custom-Query/m-p/117537#M183994</link>
      <description>&lt;P&gt;Other than that &lt;CODE&gt;Where&lt;/CODE&gt; should be &lt;CODE&gt;where&lt;/CODE&gt;, your search looks fine to me (assuming, as @rphillips_splunk said, the stuff before &lt;CODE&gt;where&lt;/CODE&gt; is OK)&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2015 04:57:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-to-Write-the-Custom-Query/m-p/117537#M183994</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-24T04:57:13Z</dc:date>
    </item>
  </channel>
</rss>

