Hello all,
I want to setup Splunk in such a way that when an user logins to the dashboard, Splunk would be able to detect the name of user (preferably via LDAP search) and say "hello Mr. ABC, welcome to the dashboard blah blah" and it will also automatically search for the data related to that specific user and display the data without manual input from user himself.
Is it possible and how can it be done in Splunk? Thanks
Is this information?
|rest /services/authentication/current-context/context
There are some such useful details are readily available in splunk token.
You can use that in your html and search...
Check this
very useful info, thank you!
Always welcome
Search query:
| rest /services/authentication/current-context | where username!="splunk-system-user" | fields username| replace * with "Welcome \"*\" !" in username
Create a dashboard panel
Set the Visualization to "single value"
as like u may customize your search query and pass the username to load user related results
unfortunately i can't accept another answer, but this also solves my problem. Thank you!
But you can accept the best answer
Is this information?
|rest /services/authentication/current-context/context
Exactly what I'm looking for. thank you very much