- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

HCadmins
Communicator
09-22-2016
10:32 AM
Hi Splunkers:
I am trying to create a simple table that has the columns: User, Failed Authentication Attempts, Domain, and Locked?
User would be, of course the user
Failed Authentication Attempts would show up if greater than 3
Domain would show the domain they were attempting to authenticate against
Locked would be a yes or no value
It's the locked out part I am having trouble with.
Here is my search:
index=wineventlog Account_Domain=* ("EventCode=4625" OR "EventCode=4740") | head 10 | stats count by user Account_Domain | search count>3 | table user count Account_Domain | rename user as "User" count as "Failed Authentication Attempts" Account_Domain as "Domain"
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

sundareshr
Legend
09-22-2016
10:42 AM
See if this helps
index=wineventlog Account_Domain=* ("EventCode=4625" OR "EventCode=4740") | head 10 | stats count count(eval(EventCode=4740)) as LockedCount by user Account_Domain | search count>3 | eval Locked=if(LockedCount>1, "yes", "no") | table user count Account_Domain Locked | rename user as "User" count as "Failed Authentication Attempts" Account_Domain as "Domain"
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

sundareshr
Legend
09-22-2016
10:42 AM
See if this helps
index=wineventlog Account_Domain=* ("EventCode=4625" OR "EventCode=4740") | head 10 | stats count count(eval(EventCode=4740)) as LockedCount by user Account_Domain | search count>3 | eval Locked=if(LockedCount>1, "yes", "no") | table user count Account_Domain Locked | rename user as "User" count as "Failed Authentication Attempts" Account_Domain as "Domain"
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

HCadmins
Communicator
09-22-2016
10:44 AM
Error in 'eval' command: The arguments to the 'if' function are invalid.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

sundareshr
Legend
09-22-2016
10:47 AM
Fixed typo
