I have this query
fetch logs
| filter matchesValue(host.name, “dar*”)
and matchesPhrase(log.source, “mydomain”)
and matchesPhrase(log.source, “diagnostic”)
and matchesValue(status, “ERROR”)
| fieldsAdd replaceString(content, “\n”, " “)
| parse replaceString(content, “\n”, " “), “LD 'Message=\”’ LD:message’\”’ LD ‘TransactionId’ LD”
| fieldsKeep message
See the parse replaceString(content, “\n”, " ") part, isn’t that bizarre?
The documentation doesn’t tell me how to rename the result of replaceString and creates that weird field name. How can I give it a meaningful name to use in the parse?
thanks!

