<?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 with Auditing the Auditors? (How can i identify from a list what matches aren't met?) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Auditing-the-Auditors-How-can-i-identify-from-a-list/m-p/212622#M176633</link>
    <description>&lt;P&gt;Try the first one again and click on the Job Inspector &amp;gt;&amp;gt; Inspect and look for litsearch (Ctrl+F litsearch). That should show something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup auditor.list | search NOT  ((dashboard="somevalue) OR (dashboard="someothervalue"))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 26 Sep 2016 00:06:55 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-09-26T00:06:55Z</dc:date>
    <item>
      <title>Help with Auditing the Auditors? (How can i identify from a list what matches aren't met?)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Auditing-the-Auditors-How-can-i-identify-from-a-list/m-p/212619#M176630</link>
      <description>&lt;P&gt;I have a requirement to check to see if our auditors have run specific dashboards every week.  I would like to build a query that reports if they haven't checked their areas of responsibility.&lt;/P&gt;

&lt;P&gt;I've already been able to extract a search that extracts applications, users, times and dashboards accessed by end users.  I've created regex to already extract 2 values 1) dashDashboards that is the dashboard accessed and 2) dashApplication that names the application being used.  The graphic below shows what it looks like and here is the query to produce that.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd_access dashDashboard!=_admin | eval Date=strftime(_time,"%m/%d/%Y")|eval Time=strftime(_time,"%H:%M") | eval dayOfWeek=strftime(_time,"%A")| table  Date Time dayOfWeek user dashApplication dashDashboard | rename dayOfWeek AS "Day of Week", AppUsed AS "Application", dashDashboard AS Dashboard, dashApplication AS Application,user AS User
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now I would like to build a lookup table to use as a source with user names and dashboards they are required to check.  The idea here is to create a search that finds what dashboards they haven't checked.  A way to 'audit the auditors'&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;auditor,dashboard
rich,home_status
rich,mail_delivery
veronica,temperature_sensors
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The following query does show if they have checked one of their areas but i would ideally like to check (and for every week woudl be ideal) if they haven't done their weekly job.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd_access dashDashboard!=_admin | eval Date=strftime(_time,"%m/%d/%Y")|eval Time=strftime(_time,"%H:%M") | eval dayOfWeek=strftime(_time,"%A")| join user,dashDashboard [|inputlookup auditor.list | rename dashboard AS dashDashboard, auditor AS user]|table  Date Time dayOfWeek user dashApplication dashDashboard | rename dayOfWeek AS "Day of Week", AppUsed AS "Application", dashDashboard AS Dashboard, dashApplication AS Application,user AS User
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can i identify given a lookup source if they haven't done their responsibilities?  Or if you have a better idea of how to accomplish this please let me know.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1906iAB7F192602AFBD4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2016 18:50:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Auditing-the-Auditors-How-can-i-identify-from-a-list/m-p/212619#M176630</guid>
      <dc:creator>voninski</dc:creator>
      <dc:date>2016-09-24T18:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Auditing the Auditors? (How can i identify from a list what matches aren't met?)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Auditing-the-Auditors-How-can-i-identify-from-a-list/m-p/212620#M176631</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup auditor.list | search NOT [ search index=_internal sourcetype=splunkd_access dashDashboard!=_admin | fields dashDashboard | rename dashDashboard AS dashboard ] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;*&lt;STRONG&gt;&lt;EM&gt;OR&lt;/EM&gt;&lt;/STRONG&gt;*&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd_access dashDashboard!=_admin | append [| inputlookup auditors.csv | eval sourcetype=lookup | rename auditor as user ] | stats values(sourcetype) as st values(_time) as _time values(dashApplication) as dashApplication by user | where mvcount(st)&amp;lt;2 | eval Date=strftime(_time,"%m/%d/%Y")|eval Time=strftime(_time,"%H:%M") | eval dayOfWeek=strftime(_time,"%A")| table  Date Time dayOfWeek user dashApplication dashDashboard | rename dayOfWeek AS "Day of Week", AppUsed AS "Application", dashDashboard AS Dashboard, dashApplication AS Application,user AS User 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 24 Sep 2016 19:53:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Auditing-the-Auditors-How-can-i-identify-from-a-list/m-p/212620#M176631</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-24T19:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Auditing the Auditors? (How can i identify from a list what matches aren't met?)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Auditing-the-Auditors-How-can-i-identify-from-a-list/m-p/212621#M176632</link>
      <description>&lt;P&gt;Thank you for the replies.  I tried them both. On the first one it returns nothing.  I understand the logic and it makes sense to me as an inverse.  But maybe we have something off.   In the second one its not giving me the dashboards so I added values(dashDashboard) AS dashDashboard but it returns events but no results in the tables.  I know it isn't quite coming back right though from the events since I have rich monitoring mail_delivery and it is returning a completed event as one of its returns.  This one really has me stumped.  &lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 21:48:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Auditing-the-Auditors-How-can-i-identify-from-a-list/m-p/212621#M176632</guid>
      <dc:creator>voninski</dc:creator>
      <dc:date>2016-09-25T21:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Auditing the Auditors? (How can i identify from a list what matches aren't met?)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Auditing-the-Auditors-How-can-i-identify-from-a-list/m-p/212622#M176633</link>
      <description>&lt;P&gt;Try the first one again and click on the Job Inspector &amp;gt;&amp;gt; Inspect and look for litsearch (Ctrl+F litsearch). That should show something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup auditor.list | search NOT  ((dashboard="somevalue) OR (dashboard="someothervalue"))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Sep 2016 00:06:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Auditing-the-Auditors-How-can-i-identify-from-a-list/m-p/212622#M176633</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-26T00:06:55Z</dc:date>
    </item>
  </channel>
</rss>

