<?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: I need to get Windows event details in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/I-need-to-get-Windows-event-details/m-p/338284#M62454</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/80254"&gt;@rahul_acc_splun&lt;/a&gt;k2, first off you need to tweak your search filters for better performance. Move 2nd and 3rd &lt;CODE&gt;| search&lt;/CODE&gt; pipes to base search. Filtering results upfront in the base search will boost your query performance, otherwise you will carry unwanted events from one command to the next and then eventually filter them out.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wineventlog" sourcetype="wineventlog:security" (action=failure OR action=success) (EventCode=4624 OR EventCode=4625 OR EventCode=4648 OR EventCode=4768 OR EventCode=4769 OR EventCode=4771 OR EventCode=4776) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After the filter command pipe the following stats command to get Success or Failure group by destinations and users.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count(eval(action="success")) as SuccessCount count(eval(action="failure")) as FailureCount  by user dest
| search FailureCount&amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Only if you want list of all the destinations and just the count of Success vs Failure by user alone, you can use values(dest) and use &lt;CODE&gt;by user&lt;/CODE&gt; as aggregate:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count(eval(action="success")) as SuccessCount count(eval(action="failure")) as FailureCount  values(dest) as Destinations by user
| search FailureCount&amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:31:19 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2020-09-29T16:31:19Z</dc:date>
    <item>
      <title>I need to get Windows event details</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-need-to-get-Windows-event-details/m-p/338283#M62453</link>
      <description>&lt;P&gt;index="wineventlog" sourcetype="wineventlog:security" | search (action=failure OR action=success) | search (EventCode=4624 OR EventCode=4625 OR EventCode=4648 OR EventCode=4768 OR EventCode=4769 OR EventCode=4771 OR EventCode=4776) | stats dc(action) as action values(dest) as dest count by user | where action&amp;gt;1&lt;BR /&gt;
This query is giving me the results for user who has successful success followed by failure but i am not able to check no of failures per destination can you please help me. &lt;BR /&gt;
I want to have 1 coloum which would have failures number pertaining to user to respective destination. &lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 18:00:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-need-to-get-Windows-event-details/m-p/338283#M62453</guid>
      <dc:creator>rahul_acc_splun</dc:creator>
      <dc:date>2017-10-30T18:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: I need to get Windows event details</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-need-to-get-Windows-event-details/m-p/338284#M62454</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/80254"&gt;@rahul_acc_splun&lt;/a&gt;k2, first off you need to tweak your search filters for better performance. Move 2nd and 3rd &lt;CODE&gt;| search&lt;/CODE&gt; pipes to base search. Filtering results upfront in the base search will boost your query performance, otherwise you will carry unwanted events from one command to the next and then eventually filter them out.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wineventlog" sourcetype="wineventlog:security" (action=failure OR action=success) (EventCode=4624 OR EventCode=4625 OR EventCode=4648 OR EventCode=4768 OR EventCode=4769 OR EventCode=4771 OR EventCode=4776) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After the filter command pipe the following stats command to get Success or Failure group by destinations and users.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count(eval(action="success")) as SuccessCount count(eval(action="failure")) as FailureCount  by user dest
| search FailureCount&amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Only if you want list of all the destinations and just the count of Success vs Failure by user alone, you can use values(dest) and use &lt;CODE&gt;by user&lt;/CODE&gt; as aggregate:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count(eval(action="success")) as SuccessCount count(eval(action="failure")) as FailureCount  values(dest) as Destinations by user
| search FailureCount&amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:31:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-need-to-get-Windows-event-details/m-p/338284#M62454</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T16:31:19Z</dc:date>
    </item>
  </channel>
</rss>

