Splunk Search

Use transforming command on all events

flow2k
Explorer

In Searching, it looks like it is not possible to use a transforming command directly. For example, I would like find the most common host values across all events, so I do
top host

But this is not a valid query.

Would I really have to do
* | top host
Is this the preferred way to do what I want?

Tags (2)
0 Karma
1 Solution

mayurr98
Super Champion

Hey you can try something like this

index=* | top host

The above query will be much slower if you want to get results faster then you can try tstats command.

| tstats count where index=* by host | sort- count

Let me know if this helps!

View solution in original post

mayurr98
Super Champion

Hey you can try something like this

index=* | top host

The above query will be much slower if you want to get results faster then you can try tstats command.

| tstats count where index=* by host | sort- count

Let me know if this helps!

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...