Splunk Cloud Platform

How to create Indexed fields with the collect command during search time?

manikanthkoti
Loves-to-Learn Everything

Hi,

Is it possible to create Indexed-Fields with the help of  collect Command from the splunk  search ?

 

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @manikanthkoti,

when you use the collect command, you save the search results in a summary index that's and index with asll indexed fields.

So you have to create your search ending with the table command and store results in a summary index.

Then you can search on the summary index that's more performant.

see the documentation at https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Collect

see also mcollect and tscollect.

Ciao.

Giuseppe

0 Karma

manikanthkoti
Loves-to-Learn Everything

Hi @gcusello ,

Thank you very much for your response.

Already we have tried the same thing.

Here Problem is we are able to store the table results to summary index using collect.

But we are unable perform tstats on these summary index fileds.

Can you please help us in this.

 

Regards,

Manikanth

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @manikanthkoti,

to use tstats you have to use tscollect instead collect, but tscollect is deprecated, so you could use a Data Model.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...