Installation

Limit to display the maximum length of string for _raw field using queries from search head

SplunkDash
Motivator

Hello, 

I have events with different lengths for _raw field within the same source. I would need to limit/minimize the length of _raw field in some case. How I would limit  the  maximum length of string that would display for _raw field using queries from search head. Any help will be greatly appreciated, Thank you so much

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Are you looking for something like this?

... | eval _raw = substr(_raw, 1, min(len(_raw),80))
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Are you looking for something like this?

... | eval _raw = substr(_raw, 1, min(len(_raw),80))
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Splunk APM & RUM | Upcoming Planned Maintenance

There will be planned maintenance of the streaming infrastructure for Splunk APM and Splunk RUM in the coming ...

Part 2: Diving Deeper With AIOps

Getting the Most Out of Event Correlation and Alert Storm Detection in Splunk IT Service Intelligence   Watch ...

User Groups | Upcoming Events!

If by chance you weren't already aware, the Splunk Community is host to numerous User Groups, organized ...