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!

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...

Get ready to show some Splunk Certification swagger at .conf24!

Dive into the deep end of data by earning a Splunk Certification at .conf24. We're enticing you again this ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...