Splunk Search

How can I get a connected account at present?

lanying
Explorer

In a dashboard, calling a csv file query. Then I want to insert a present login account*(UserAccount)*.
How can I get a connected account at present?

=================================================

This is a .csv file.

UserAccount,OrgCode,EventName,"ATTACK_TYPE",AttackerIP,AttackerPort,VictimIP,VictimPort

admin,abc,"attack-web-02-sql-injection-get-or.05093001@",hacking,"1.1.1.1",32923,"1.1.1.1",80

Tags (2)
0 Karma

Ayn
Legend

A way of accessing the name of the currently logged in user in a search? I'm pretty sure there's currently no straightforward way of doing that. What you COULD do is write your own custom command which gets the username from the session token, and then returns it so you can use it in your search. Have a look at southeringtonp's answer discussing the details of this in the following question: http://splunk-base.splunk.com/answers/23504/determine-currently-logged-in-username

0 Karma

lanying
Explorer

If I login splunk web with a "test" account, I'd like to get the account information(test) by a search query.(http://localhost:8000 ID:test, PW:111)

0 Karma

Ayn
Legend

I'm not sure what you're asking for.

You have your csv file, you have a field with the UserAccount that shows...something (logged in user on 1.1.1.1 at the time of attack? User that created this CSV report?) but you want to show UserAccount in some other way. Please give us more details on this one.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...