I want to create custom saved searches for users based on their search filter. I think I need to to use scripted login (i.e., pamScripted.py, dumbScripted.py, etc.) to do so. For instance, if ...Scripted.py creates a user's search filter, then create a search for each item in the filter. So a user whose search filter is host=x, host=y, host=z would get saved searches [x]..., [y]..., [z]...
I've modified dumbScripted.py to insert saved searches into my savedsearches.conf, but this requires restarting splunk to activate the searches. Alternatively, it might be reasonable to have the script launch "splunk add saved-search ..." but I haven't been able to make it work on a per-user basis. Any suggestions?
... View more