I have extracted fields from a json log using spath, I want to add double quotes to the tabled results using ... | eval myval="\"".myval."\"" but no eval function seems to work on the fields extracted in this way. What am I doing wrong??
@myobmatt can you add some JSON data sample along with the field name that spath extracts?
Any field that I have extracted from the json log using spath, when I try to apply ANY eval function, comes up blank when I try to table it
Hi
You jus need one set of \" in the beginning and one in the end, like this
| eval myval="\""+myval+"\""
Please let me know if the answer was useful for you. If it was, accept it and upvote. If not, give us more input so we can help you with that
Hi
have you tried this:
|eval myval="\"".myval."\""