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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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