Splunk Dev

Auto prepend when search in background

duenguyen
Explorer

Hello I have csv which look like this
[email protected],10.20.10.223,12/2/2013 20:39,www.google.com
[email protected],10.20.10.223,12/2/2013 20:39,www.yahoo.com
[email protected],10.20.10.223,12/2/2013 20:39,www.msn.com
[email protected],12.12.3.444,12/2/2013 20:39,www.ask.com
[email protected],14.15.3.344,12/2/2013 20:39,www.facebook.com
[email protected],12.14.3.444,12/2/2013 20:39,www.tweeter.com
[email protected],12.22.33.444,12/2/2013 20:39,www.splunk.com

Where as the first column is username, ipaddress, time and url user visit. I already successfully modified props.conf and transform.conf to map csv fields. In splunk i have user account setup for [email protected], [email protected] and [email protected]. Is there a way when user a logged in he can only search information which only relevant to him so is with [email protected] and [email protected]. In another word when user [email protected] logged in when he type * or any search term or command so in background it will automatically prepend and run
username=[email protected] | search *

0 Karma

kristian_kolb
Ultra Champion

I think that you'd need to set that up statically as a 'search restriction' property for each role within Splunk. I.e. each user must have its own role. Workable if you 20 users, but not if you have 200.

http://docs.splunk.com/Documentation/Splunk/6.0.1/Security/Aboutusersandroles
http://docs.splunk.com/Documentation/Splunk/6.0.1/Security/Addandeditroles

/K

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Splunk Cloud Application Management in Terraform

Register   On Tuesday, August 4 at 11AM PDT / 2PM EDT, we’re diving into how you can bring Infrastructure as ...

Get Agentic with Splunk Lantern: Connect to Cisco Cloud Control, Transform ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...

July Community Events: Master ITSI 5.0 & Automate Splunk

Struggling with alert fatigue or feeling like you're spending more time on infrastructure maintenance than ...