Splunk Search

How to select fields for email alert

Jaci
Splunk Employee
Splunk Employee

Is there any way to control the reported fields in an email alert? I have configured splunk to add the search results inline, but I don't need all the fields it is showing. I only want the host and _raw fields to show up in the email. Can you point me in the direction where I can change this behavior?

2 Solutions

Dan
Splunk Employee
Splunk Employee

You can control this by appending "| fields + host,_raw" to the search string

View solution in original post

CerielTjuh
Path Finder

If Splunk is showing more fields then those two (_time) you can remove the fields you don't want by issuing the command | fields - _time after the | fields + host, _raw.

View solution in original post

CerielTjuh
Path Finder

If Splunk is showing more fields then those two (_time) you can remove the fields you don't want by issuing the command | fields - _time after the | fields + host, _raw.

Jaci
Splunk Employee
Splunk Employee

Thank you for the answer, this is helpful.

0 Karma

Dan
Splunk Employee
Splunk Employee

You can control this by appending "| fields + host,_raw" to the search string

Jaci
Splunk Employee
Splunk Employee

This is exactly what I was looking for. Thank you

0 Karma
Get Updates on the Splunk Community!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...