Splunk Search

Metasearch and Rawdata is required...

kryzew
Explorer

Hi,

I' cant end my search using metasearch when I need to find in index something with space betwen like "Microsoft Update". There is no problem to find there one word aplikaction like below:

|metasearch index=my_index ("onewordaplikaction")

When I try:

|metasearch index=my_index ("twoword aplikaction")

I get error:

Streamed search execute failed because: Error in 'metalitsearch' command: Invalid metasearch. Rawdata is required for this search..

Is there any way to find by metasearch something like "Microsoft Update" or "Update"? Or is just metasearch limit?

BR,

Tags (2)
0 Karma

woodcock
Esteemed Legend

You can do it like this:

| tstats count max(_time) AS _time WHERE index="my_index" AND (TERM("onewordaplikaction") OR (TERM("twoword") AND TERM("aplikaction")))
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @kryzew,
with | metasearch you can use only few fields (index, sourcetype, source, host), and you cannot use raw data for text search.
I understand that | metasearch is faster than a normal way, but you cannot use it if you need a text search.
If you don't need other fields, but only raw data, you can use the Fast Search Mode.

Ciao.
Giuseppe

0 Karma

kryzew
Explorer

Hi,
@kamlesh_vaghela
I tired on this way but its don't work.
When I used "Update" or "Microsoft" I can't find field named "Microsoft Update" im metasearch.
I use "*Update" don't work too.

@gcusello I can't explain, but I can find more than splunk doc say about metasearch.

I compare normal search and metasearch, and I have same results, mean time when something hapen.

But, I can't show on table more than fields like index, host, source, sourcetype like splunk doc say.

BR,

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @kryzew,
as I said using metasearch you have only few fields and you cannot use rawdata for text search.

Comparing metasearch and normal search (using Verbose Mode) you have the same number of results only if in your search you're using index, sourcetype, source or host, and anyway with metasearch you haven't the rawdata.
Then you cannot have the same results if you want to use another field or a text search.

Whay do you want to use metasearch? what's your need?

Ciao and Happy New Year.
Giuseppe

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@kryzew

Have you tried these?

|metasearch index=my_index "Microsoft"

OR

|metasearch index=my_index "Update"

OR

|metasearch index=my_index "Microsoft" "Update"

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...