Splunk Search

How to repeat a string in multiple row table

harshal_chakran
Builder

Hi,

I have written a search query to get a table as shown below:

alt text

I want to add one more column, where I want to repeat the string "overhead" in all the existing rows.
i.e.

alt text

Please guide me how to do this.

Tags (4)
0 Karma

MuS
Legend

Hi harshal,

just add an eval to your search like this

YourMagicSearchFu | eval parameter="overhead" | table parameter ID Value

hope this helps ...

cheers, MuS

MuS
Legend

HeHe, thanks somesoni2 for correcting the eval command 😉

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...