All Apps and Add-ons

eval new field which will have addition of two numeric fields

pavanbmishra
Path Finder

Hello SMEs,

Seeking support to eval new field from two already being extracted one.

I have bytes_received & bytes_sent fields. Wanted to have one more field (total_bytes) which will have addition of both 

 

eval total_bytes = bytes_received + bytes_sent

Please suggest

Labels (1)
Tags (1)
0 Karma
1 Solution

thambisetty
SplunkTrust
SplunkTrust

Hope you want to create a new field at search time instead of writing that above mentioned line in search every time.

if yes follow below:

Create props.conf in local directory in any application under apps directory of search head and add below:

[sourcetype]
EVAL-total_bytes = bytes_received+bytes_sent

Note: you should replace sourcetype with the source type for which you want to have new field.

————————————
If this helps, give a like below.

View solution in original post

thambisetty
SplunkTrust
SplunkTrust

Hope you want to create a new field at search time instead of writing that above mentioned line in search every time.

if yes follow below:

Create props.conf in local directory in any application under apps directory of search head and add below:

[sourcetype]
EVAL-total_bytes = bytes_received+bytes_sent

Note: you should replace sourcetype with the source type for which you want to have new field.

————————————
If this helps, give a like below.
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...