Splunk Search

Trimming one double quote from beginning of matching field values

mbasharat
Builder

Hi,

I have a field name "Software" in my search results. Field values are:

"Java Development Kit 1.5
"Java Development Kit 1.7
"SUN Java Development Kit
"SUN Java Runtime Environment
Adobe Reader
Apache 1.3
.....and so values go on......

I need the double quote removed/trimmed which is present at the beginning of every value that will have them. I have tried using eval, rex with various combinations but it is not working giving error as "Unbalanced quotes"

Thanks in advance!!!!

Tags (1)
0 Karma
1 Solution

somesoni2
Revered Legend

Try like this

..| eval Software= replace(Software, "\"", "")

OR

| rex mode=sed field=Software "s/\"//g"

View solution in original post

0 Karma

somesoni2
Revered Legend

Try like this

..| eval Software= replace(Software, "\"", "")

OR

| rex mode=sed field=Software "s/\"//g"
0 Karma

mbasharat
Builder

THANK YOU!!!

0 Karma
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

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