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!

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