Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Add additional columns in search results based on the field

$
0
0
I've a search query like this: (api=*/getUser) OR (api=/api/v1/addUser component=Comp1) OR (api=/api/v1/addUser component=Comp2) | table api, component But I wanted to add two more columns some thing like the below: latency flowname api component Latency from comp1 Get User /comp1/api/v1/getUser Comp1 Latency from comp2 Get User /comp2/api/v1/getUser Comp2 Latency from comp1 Add User /api/v1/addUser Comp1 Latency from comp2 Add User /api/v1/addUser Comp2 I thought to use `eval`, but writing eval with many checks and balances in case of many api component combination doesn't sound great. Is there any solution to handle?

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>