Appreciate your response. Below is how the JSON output should be. I have added the JSON output for all 6 lines.
1st Line
{
"timer": [
[
"2022-03-08 14:52:50,672"
]
],
"YEAR": [
[
"2022"
]
],
"MONTHNUM": [
[
"03"
]
],
"MONTHDAY": [
[
"08"
]
],
"HOUR": [
[
"14",
null
]
],
"MINUTE": [
[
"52",
null
]
],
"SECOND": [
[
"50,672"
]
],
"ISO8601_TIMEZONE": [
[
null
]
],
"processid": [
[
"1654827"
]
],
"appu": [
[
"ansible"
]
],
"appn": [
[
"ansible"
]
],
"role": [
[
"lvm "
]
],
"task_name": [
[
" Formatting xfs filesystem"
]
]
}
2nd and 3rd Line ( Please note that the task_name field doesn't exist in 2nd and 3rd line, it should be populated/added in 2nd and 3rd line by referring to the 1st line and would look like below )
{
"timer": [
[
"2022-03-08 14:52:50,672"
]
],
"YEAR": [
[
"2022"
]
],
"MONTHNUM": [
[
"03"
]
],
"MONTHDAY": [
[
"08"
]
],
"HOUR": [
[
"14",
null
]
],
"MINUTE": [
[
"52",
null
]
],
"SECOND": [
[
"50,672"
]
],
"ISO8601_TIMEZONE": [
[
null
]
],
"processid": [
[
"1654827"
]
],
"appu": [
[
"ansible"
]
],
"appn": [
[
"ansible"
]
],
"action": [
[
"changed"
]
],
"activity": [
[
"DUMMY-HOST-1"
]
],
"task_name": [
[
" Formatting xfs filesystem"
]
]
}
{
"timer": [
[
"2022-03-08 14:52:51,816"
]
],
"YEAR": [
[
"2022"
]
],
"MONTHNUM": [
[
"03"
]
],
"MONTHDAY": [
[
"08"
]
],
"HOUR": [
[
"14",
null
]
],
"MINUTE": [
[
"52",
null
]
],
"SECOND": [
[
"51,816"
]
],
"ISO8601_TIMEZONE": [
[
null
]
],
"processid": [
[
"1654827"
]
],
"appu": [
[
"ansible"
]
],
"appn": [
[
"ansible"
]
],
"action": [
[
"changed"
]
],
"activity": [
[
"DUMMY-HOST-2"
]
],
"task_name": [
[
" Formatting xfs filesystem"
]
]
}
4th Line
{
"timer": [
[
"2022-03-08 14:52:52,030"
]
],
"YEAR": [
[
"2022"
]
],
"MONTHNUM": [
[
"03"
]
],
"MONTHDAY": [
[
"08"
]
],
"HOUR": [
[
"14",
null
]
],
"MINUTE": [
[
"52",
null
]
],
"SECOND": [
[
"52,030"
]
],
"ISO8601_TIMEZONE": [
[
null
]
],
"processid": [
[
"1654827"
]
],
"appu": [
[
"ansible"
]
],
"appn": [
[
"ansible"
]
],
"role": [
[
"lvm"
]
],
"task_name": [
[
"Backup original fstab"
]
]
}
5th and 6th line ( Please note that the task_name field doesn't exist in 5th and 6th line, it should be populated/added in 5th and 6th line by referring to the 4th line and would look like below )
{
"timer": [
[
"2022-03-08 14:52:52,031"
]
],
"YEAR": [
[
"2022"
]
],
"MONTHNUM": [
[
"03"
]
],
"MONTHDAY": [
[
"08"
]
],
"HOUR": [
[
"14",
null
]
],
"MINUTE": [
[
"52",
null
]
],
"SECOND": [
[
"52,031"
]
],
"ISO8601_TIMEZONE": [
[
null
]
],
"processid": [
[
"1654827"
]
],
"appu": [
[
"ansible"
]
],
"appn": [
[
"ansible"
]
],
"action": [
[
"changed"
]
],
"activity": [
[
"DUMMY-HOST-1"
]
],
"task_name": [
[
"Backup original fstab"
]
]
}
{
"timer": [
[
"2022-03-08 14:52:52,049"
]
],
"YEAR": [
[
"2022"
]
],
"MONTHNUM": [
[
"03"
]
],
"MONTHDAY": [
[
"08"
]
],
"HOUR": [
[
"14",
null
]
],
"MINUTE": [
[
"52",
null
]
],
"SECOND": [
[
"52,049"
]
],
"ISO8601_TIMEZONE": [
[
null
]
],
"processid": [
[
"1654827"
]
],
"appu": [
[
"ansible"
]
],
"appn": [
[
"ansible"
]
],
"action": [
[
"changed"
]
],
"activity": [
[
"DUMMY-HOST-2"
]
],
"task_name": [
[
"Backup original fstab"
]
]
}