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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...