Parsing JSON log files using MS Message Analyzer

182 Views Asked by At

A documentation of MS Message Analyzer describes it can read JSON files.

I have a log file with JSON-encoded per line, like this:

{"userid":1,"action":"login","timestamp":1463734780036}
{"userid":1,"action":"logout","timestamp":1463734780036}
{"userid":2,"action":"login","timestamp":1463734780036}
{"userid":2,"action":"logout","timestamp":1463734780036}

However, it reads only first line.

sample

I've tried wrapping log entries with an array:

[{"userid":1,"action":"login","timestamp":1463734780036},
{"userid":1,"action":"logout","timestamp":1463734780036},
{"userid":2,"action":"login","timestamp":1463734780036},
{"userid":2,"action":"logout","timestamp":1463734780036}]

MSMA read this as one big log entry.

sample2

I want to read each log entry as Message in MSMA, like CSV file:

sample3

MSMA doesn't support splitting Messages for JSON files?

0

There are 0 best solutions below