Splunk Search

map command usage for a adding a new column

joydeep741
Path Finder

I have a
SEARCH-1
Which Gives results like

-time column1 column2

I want to run a secondary search for each value of _time and add a column3 added to the existing columns in the result above.

-time column1 column2 column3

I am trying something like this. My old columns get lost in the process. And the number of results are also less.

index=abc sourcetype=sitescopev2log | timechart avg(Availability) by columns | map search="search index=xyz sourcetype=xyz_st | stats count as column3"

Tags (2)
0 Karma

woodcock
Esteemed Legend

Like this:

index=abc sourcetype=sitescopev2log | timechart avg(Availability) BY columns
| append [index=xyz sourcetype=xyz_st | timechart count AS column3]
| timechart avg(*) AS *
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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