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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...