Splunk Search

Search Command "file"

jcisha
Path Finder

URL : http://docs.splunk.com/Documentation/Splunk/5.0.1/SearchReference/SearchCheatsheet

URL in the

Display events from the file "messages.1" as if the events were indexed in Splunk.
"| File / var/log/messages.1"

Were tested with the contents of the manual
However, it does not work properly.

Search Command "file" Command does not use you asking?

Tags (1)
1 Solution

Suda
Communicator

Hello,

You may need to add the "use_file_operator" capability into your role in order to use the "file" search command.

If my role doesn't have this capability, Splunk reports the error message; "You have insufficient privileges to perform this operation."
And the default admin role doesn't have it. So, you need to add it.

Thanks.

View solution in original post

Suda
Communicator

Hello,

You may need to add the "use_file_operator" capability into your role in order to use the "file" search command.

If my role doesn't have this capability, Splunk reports the error message; "You have insufficient privileges to perform this operation."
And the default admin role doesn't have it. So, you need to add it.

Thanks.

jcisha
Path Finder

Thank you.
Did not set the roles(use_file_operator).

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...