Getting Data In

filtering search results

Michael
Contributor

I have a very simple search/chart to look for failed logons on my domain:

EventCode=4625 Account_Name="*" | timechart count by Account_Name

Problem is, MS in their wisdom has decided to include two entries in the event called "Account_Name", one that is never used (labelled as "-") and the actual one you want.

So, when I do the query (chart), I get a combination of the account names that failed AND a bogus account ("-") that skews all the results with what's basically an overall total.

How can I simply tell it to NOT show the "-" in the results of the search?

Something to the effect of (yes, I know this doesn't work):

EventCode=4625 Account_Name="*" | timechart count by Account_Name | NOT "-"

Thanks,
(please don't tell me to write regex to fix this... 😉

Tags (2)

krusty
Contributor

Does this works?

EventCode=4625 Account_Name="*" NOT Account_Name="*-*" | timechart count by Account_Name

Regards

Michael
Contributor

sample of the area I'm talking about:

"
Subject:
Security ID: S-1-5-18
Account Name: SERVERNAME$
Account Domain: PORT
Logon ID: 0x3e7

Logon Type: 10

Account For Which Logon Failed:
Security ID: S-1-0-0
Account Name: bubba
Account Domain: PORT
"

I just want to know about Bubba's failed logon, not "SERVERNAME$" or "-". This can't be the first time this has been asked...

0 Karma

Michael
Contributor

Those results filter it down alright, but it finds the instances where the "-" is replaced by the name of the server -- that's just as bad as having a boat full of "-" as results -- it doesn't boil it down the account names that failed a logon.

So I guess an extension of my original quest is to return the Account_Names -- without the "-" or the name of the server (why is the servername even listed as an Account Name anyways, Redmond? geez!).

0 Karma
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...