Home

OMS Query - Failed Logins

%3CLINGO-SUB%20id%3D%22lingo-sub-361289%22%20slang%3D%22en-US%22%3EOMS%20Query%20-%20Failed%20Logins%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-361289%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20created%20failed%20login%20reports%20showing%20username%2C%20IP%20address%2C%20number%20of%20attempts%2C%20with%20date%20and%20time.%26nbsp%3B%20I%20see%20under%20Security%20%5C%20Common%20Security%20Log%20an%20item%20listed%20as%20Source%20Mac%20Address%3B%20is%20there%20a%20way%20%2F%20method%20this%20can%20be%20added%20to%20a%20report%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-361289%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EQuery%20Language%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-363702%22%20slang%3D%22en-US%22%3ERe%3A%20OMS%20Query%20-%20Failed%20Logins%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-363702%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20you%20talk%20about%20on-prem%20AD%20failed%20logons%20the%20log%20you%20need%20to%20take%20is%20SecurityEvent.%3C%2FP%3E%3CP%3EHere%20is%20query%20for%20retrieving%20the%20failed%20logons%20(event%20id%204625)%20for%20the%20last%2024%20hours.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESecurityEvent%3CBR%20%2F%3E%7C%20where%20EventID%20%3D%3D%204625%3CBR%20%2F%3E%7C%20where%20AccountType%20%3D%3D%20'User'%3CBR%20%2F%3E%7C%20where%20TimeGenerated%20%26gt%3B%20now()%20-%2024hrs%3CBR%20%2F%3E%7C%20project%20TimeGenerated%2C%20Account%2C%20DomainController%3DComputer%2C%20IpAddress%2C%20LogonType%2C%20ClientHostName%3DWorkstationName%2C%20Activity%2C%20SubStatus%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-363150%22%20slang%3D%22en-US%22%3ERe%3A%20OMS%20Query%20-%20Failed%20Logins%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-363150%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3ECan%20you%20provide%20what%20kind%20of%20data%20you%20are%20querying.%20Every%20table%20has%20its%20own%20schema%20and%20not%20necessary%20every%20record%20contains%20all%20the%20fields%20from%20the%20schema.%20That%20depends%20on%20the%20source%20that%20is%20generating%20the%20records.%3C%2FP%3E%3C%2FLINGO-BODY%3E
keithsmtih
Occasional Visitor

I have created failed login reports showing username, IP address, number of attempts, with date and time.  I see under Security \ Common Security Log an item listed as Source Mac Address; is there a way / method this can be added to a report?

 

 

 

2 Replies

Hi,

Can you provide what kind of data you are querying. Every table has its own schema and not necessary every record contains all the fields from the schema. That depends on the source that is generating the records.

If you talk about on-prem AD failed logons the log you need to take is SecurityEvent.

Here is query for retrieving the failed logons (event id 4625) for the last 24 hours.

 

SecurityEvent
| where EventID == 4625
| where AccountType == 'User'
| where TimeGenerated > now() - 24hrs
| project TimeGenerated, Account, DomainController=Computer, IpAddress, LogonType, ClientHostName=WorkstationName, Activity, SubStatus

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies