Take for example the following query:
| makeresults
| eval json="{
\"Name\": \"Sam\",
\"Details\": [
\"Occupation\": {
\"Job\":\"Lawyer\",
\"Salary\":100000
},
\"Address\": {
\"City\":\"Los Angeles\",
\"State\":\"California\"
}
]"
I can get the field "json" to appear in a table with line breaks by adding:
| makemv delim="
" json
| table json
But the results look like this:
How do I get the table output to include the tab spaces so the fields are lined up properly in the eval statement?
So for example, the table output should like:
"Name": "Sam",
"Details": [
"Occupation": {
"Job":"Lawyer",
"Salary":100000
},
"Address": {
"City":"Los Angeles",
"State":"California"
}
]
Basically I'd like all of the information indented nicely.
Thanks!
... View more