How to re-parse Office365 logs collected from the application splunk_ta_o365.
The add-on splunk_ta_o365 may sometimes produces multi-lines JSON events (ie. an event with several JSON objects separated by a new line). The following modification change the line breaker configuration.
Edit the file $SPLUNK_HOME/etc/apps/splunk_ta_o365/local/props.conf
(create it if it doesn't exists) and add the following lines:
[o365:management:activity]
KV_MODE = json
LINE_BREAKER = }([\r\n\s]+){
TIME_PREFIX = "CreationTime":\s*"
TZ = UTC
TIME_FORMAT = %Y-%m-%dT%H:%M:%S