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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...