Getting Data In

Explain param name="search"

mgraju
New Member

can you pls explain tag,in all the examples they used index=_internal source=*metrics.log if i want to use .csv file from local drive what is the syntax, pls explain or example



index=_internal source=*metrics.log group=per_sourcetype_thruput
| chart sum(kb) over series | sort -sum(kb) | head 10

Tags (1)
0 Karma

Drainy
Champion

Where to even begin... Firstly I think this shouts to me that you haven't read any of the documentation and that you're trying to hack Splunk into doing something you want by diving into the code... STOP!

Go back, read the tutorials and learn!

Firstly, what you have pasted above is some advanced xml. Have you tried the simple xml yet? In the above paste its a HiddenSearch module which has a required search param, inside here you paste the search you want to run.

You ask how to search a csv? Well.. is it a lookup or indexed? if its indexed then you search it like you would any other indexed data, if its a lookup then you can use the |inputlookup command to pull it in to then search.

The more detail you give the better the answer, also the more you try to learn yourself the easier you will find this 🙂

Some links;

http://docs.splunk.com/Documentation/Splunk/latest/Tutorial/WelcometotheSplunktutorial
http://docs.splunk.com/Documentation/Splunk/latest/Tutorial/Aboutgettingdatain
http://docs.splunk.com/Documentation/Splunk/5.0.2/Viz/OverviewofSimplifiedXML
http://docs.splunk.com/Documentation/Splunk/5.0.2/SearchReference/Inputlookup

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

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