All Apps and Add-ons

Splunk for Citrix XenApp Logoff times

jmp13
Explorer

Is there a way in the app to modify the user reports by time to include logoff time? I am looking to find out both logon and logoff times for users.

Thanks

Janet

Tags (1)
0 Karma

jconger
Splunk Employee
Splunk Employee

There is not a Logoff field available. However, we can write a search to get session duration (active, disconnected, etc.).

jconger
Splunk Employee
Splunk Employee

Here is an example to get Disconnected session duration. You can modify to get active as well:

index=xenapp sourcetype=xenapp:*:session State="Disconnected" | dedup ServerName SessionId | sort - CurrentTime | convert timeformat="%m/%d/%Y %H:%M:%S" mktime(CurrentTime) mkTime(DisconnectTime) | eval DisconnectDuration = tostring(CurrentTime - DisconnectTime, "duration") | table LogOnTime UserName ServerName SessionId DisconnectDuration | rename DisconnectDuration AS "Disconnect Duration"

0 Karma

jmp13
Explorer

How do you go about writing the search to get session duration? I need to know when someone logs on then how long they are in a session?

Thanks

Janet

0 Karma
Get Updates on the Splunk Community!

Splunk Platform | Upgrading your Splunk Deployment to Python 3.9

Splunk initially announced the removal of Python 2 during the release of Splunk Enterprise 8.0.0, aiming to ...

From Product Design to User Insights: Boosting App Developer Identity on Splunkbase

co-authored by Yiyun Zhu & Dan Hosaka Engaging with the Community at .conf24 At .conf24, we revitalized the ...

Detect and Resolve Issues in a Kubernetes Environment

We’ve gone through common problems one can encounter in a Kubernetes environment, their impacts, and the ...