Splunk Search

Help searching the keyword to select multiple users from my log file to get the report

gow19
New Member

Hi guys,

I am using Splunk enterprise for monitoring the application name called Nextcloud.

Here I want to customize the dashboard for Nextcloud for that I have imported my nextcloud.log into my Splunk.

In my log file, it has user: xxxxx

I want to search the keyword to select multiple users from my log file to get the report I don't know what is keyword it is been used to pull the data. Can anyone help me with this?

Sample Keywords:

source="/xxx/xxx/xxx/nextcloud.log" host="nextcloud" sourcetype="Nextcloud" | search user= "*"

 The above command works for every user but i want to get reports of only 2 users how do i do that?

Labels (2)
Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Rather than use user="*" to search for all users, specify the list of users in an IN clause.

 

index=myindex source="/xxx/xxx/xxx/nextcloud.log" host="nextcloud" sourcetype="Nextcloud" user IN (foo bar)

 

---
If this reply helps you, Karma would be appreciated.
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @gow19,

sory but I don't understand what you mean with "keyword".

in your sample, you define "keyword" four field conditions, maybe do you mean a condition?

or you want to know te users with more than one event?

or do you want to find a field values where there is more than one user, or what else?

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Exporting Splunk Apps

Join us on Monday, October 21 at 11 am PT | 2 pm ET!With the app export functionality, app developers and ...

Cisco Use Cases, ITSI Best Practices, and More New Articles from Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Build Your First SPL2 App!

Watch the recording now!.Do you want to SPL™, too? SPL2, Splunk's next-generation data search and preparation ...