Splunk Search

custom field values with space character

rarki
Explorer

i can not search custom field values(with space character) that JSON type data coming from jira app.

for example
customfield1 ="abc abc"

but if I use spath function inside Splunk search I can filtre the customfield value

index=jira
| spath "fields.customfield1"
| search "fields.customfield1"="abc abc"
results found.

index=jira "fields.customfield1"="abc abc"
No results found.

why does the second search is can not find any results ?
how can the second search work correctly ?

0 Karma
1 Solution

rarki
Explorer

It turns out this problem has nothing to with space character, its because of a spacial character that in custom fields value.

View solution in original post

0 Karma

rarki
Explorer

It turns out this problem has nothing to with space character, its because of a spacial character that in custom fields value.

0 Karma

jacobpevans
Motivator

Greetings @rarki,

Could you try this? Note the single quotes vs. the double quotes.

index=jira 'fields.customfield1'="abc abc"

Cheers,
Jacob

Cheers,
Jacob

If you feel this response answered your question, please do not forget to mark it as such. If it did not, but you do have the answer, feel free to answer your own post and accept that as the answer.
0 Karma

rarki
Explorer

thats not working also but thank you for the comment @jacobevans

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...