Splunk Enterprise Security

Splunk Common Information Model (CIM): How to distinguish between login and logout events in the Authentication data model?

MonkeyK
Builder

Can someone tell me what in the Authentication data model distinguishes between login and logout?
http://docs.splunk.com/Documentation/CIM/4.6.0/User/Authentication

I know for sure that I am not mapping logout to the authentication data model because

|datamodel Authentication Authentication search | search index=<meaningful index>

only shows login events.

But I am not sure what the right way is to include logout events. I am sure that I can add the Authentication tag for those events, but then what do I add to distinguish login from logout?

ololdach
Builder

Hi MonkeyK,

to my understanding of that datamodel, Authentication is ONLY for the authentication process, not for monitoring the underlying session and thus will only show login events and only has two meaningful action states: "success" and "failure". Check the Network_Session datamodel to track your sessions and use the "start" and "end" tags to mark session login and logoff respectively.

Oliver

0 Karma

samsplunks
Explorer

My work-around is to add a normalized value for the action field.

action="logout"

0 Karma

bmo017
Path Finder

Hello,

If you are dig into the datamodel itself of 'Authentication' you will see two a subset of Authentication datamodels. In those you should see "Successful Authentication," Unsuccessful Authentication," etc. The subset names may not be exactly that but you should see those once you open up the 'Authentication' datamodel and poke around.

Once you find those names, the search would be something along the lines below:

|datamodel Authentication  Successful Authentication search...

Also, with your search, I would try to map back indexes to specific datamodels to improve overall performance. You can do this with the Splunk Common Informaton Model (CIM) Addon: https://splunkbase.splunk.com/app/1621/

0 Karma

MonkeyK
Builder

Thank you for your thoughts. My question was about login vs logout. Logout is not an unsuccessful authentication. I guess maybe logout is not authentication at all, but it sure seems highly relevant to understanding authentication.

0 Karma

cryptonitenxt
Engager

I've looked at the "linux auditd" and the nix app and add-on, but none of these apps appears to handle logout events.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...