Splunk Search

Is there a way to copy a field and not rename it?

robertlynch2020
Motivator

I need to display _time field1 field1 where field 1 and field 1 are the same, however if you try to do this it wont display the second field.
so renaming wont work.

so i need
_time field1 field1_copy

however i cant seem to find a copy command.

I have tried autoregress task_name AS task_name_n p=1, but i lose one value

0 Karma
1 Solution

woodcock
Esteemed Legend

Like this:

| eval field1_copy=field1 | table field1 field1_copy

View solution in original post

woodcock
Esteemed Legend

Like this:

| eval field1_copy=field1 | table field1 field1_copy

robertlynch2020
Motivator

cheers 🙂

0 Karma
Get Updates on the Splunk Community!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

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 ...