I have a custom logfile and want to use log processing, but it doesn’t split the loglines as it should, is there a way to tell the system to do that?
The log is json formatted, so every {} is one logline
example of the content:
“content”: “{\“servertime\”:\“2022-11-02T23:44:48.3637831-04:00\”,\“action\”:\“Start US\”,\“region\”:\“US\”,\“time\”:0}{\“region\”:\“US\”,\“action\”:\“Start US\”,\“time\”:0,\“servertime\”:\“2022-11-02T23:45:17.8491586-04:00\”}{\“region\”:\“US\”,\“action\”:\“Start US\”,\“time\”:0,\“servertime\”:\“2022-11-02T23:46:00.7540443-04:00\”}”
Automatic parsing will be done when Dynatrace finds a timestamp inside the log line. I believe yours is the servertime field. You should add a timestamp configuration for your logs and this will be done automatically. You could also (if the log lines are very long and you can’t control where will the timestamp be in the string control the number of strings to look at in each row to identify the field.
All previous comments that I see will only occur after the json has entered Dynatrace so first make sure the timestamp is defined correctly, otherwise you might be missing some lines.