r/Splunk • • 16d ago

Help with splunk search

Hi

I've been asked to provide a report of logons to endpoint in our environment, which uses AD. Would that be event codes 4624 from Microsoft? Are there any apps that provide this info in a report already?

5 Upvotes

10 comments sorted by

7

u/Dvorak_94 16d ago

Know your data first! if you are looking for a already prebuilt report how are you going to know the data that is displaying showing is accurate?

→ More replies (1)

4

u/_Lyx_ 16d ago
| from datamodel Authentication Authentication
| search action=success
| stats count by host

You can search for just 4624, but you're leaving out any login that isnt a Windows endpoint. This will get all of them (assuming you onboarded the data correctly via the TAs on Splunkbase)

6

u/Fontaigne SplunkTrust 16d ago

Several asterisks on that one sentence.... it's accurate, and also a world of assumptions.

4

u/tclark2006 16d ago

Yea our authentication DM is a dumpster fire with the standard windows TA. It thinks everything is an authentication event.

2

u/TheSeabo 16d ago

You need to check your tagging. I don’t have any problems with the default windows TA. I would also look at your sourcetypes for those windows logs.

3

u/the_good_hodgkins 16d ago

4624 successful logon
4625 failed login

2

u/Busy-Life-2412 16d ago

usually this is simple SPL query against Winsec index. Since you need out of the box i would give a shot to this app.
https://splunkbase.splunk.com/app/647

1

u/One_Light_362 11d ago

too easy these days with AI.

1

u/dovey112 2d ago

You might also need to look at "Logon Type", as they are different depending on what Security Log you are looking at.

4624 events on a Domain Controller will almost always be Type=3, unless there are interactive logons to it via console (type=2).

Everything on Endpoints/Desktops etc will be interactive ...type=2........Unless of course you browse to \\computername\c$ .......that will be type=3 on the local box.