What is the source of your message? This looks way different from the other examples you shared.
I'm exactly sure what that means, I use fluentd to aggregate logs and funnel that to logstash.
On logstash config, http input plugin is used.
The example logs shared are of same format to that of my production logs.
Below warnings are seen in the logstash logs
[2023-07-20T00:06:30,436][WARN ][logstash.filters.json ] Error parsing json {:source=>"message", :raw=>"INFO |2023-07-20 00:04:29 |1 | manageQueue.py 335 | Scan details: {'main': {}}", :exception=>#<LogStash::Json::ParserError: Unrecognized token 'INFO': was expecting 'null', 'true', 'false' or NaN
at [Source: (byte[])"INFO |2023-07-20 00:04:29 |1 | manageQueue.py 335 | Scan details: {'main': {}}"; line: 1, column: 6]>}
[2023-07-20T00:06:35,900][WARN ][logstash.filters.json ] Error parsing json {:source=>"message", :raw=>"INFO |2023-07-20 00:04:46 |1 | manageQueue.py 335 | Scan details: {'main': {}, 'staging': {}}", :exception=>#<LogStash::Json::ParserError: Unrecognized token 'INFO': was expecting 'null', 'true', 'false' or NaN
at [Source: (byte[])"INFO |2023-07-20 00:04:46 |1 | manageQueue.py 335 | Scan details: {'main': {}, 'staging': {}}"; line: 1, column: 6]>}
[2023-07-20T00:06:41,900][WARN ][logstash.filters.json ] Error parsing json {:source=>"message", :raw=>"INFO |2023-07-20 00:05:09 |1 | manageQueue.py 324 | There is nothing to process on the queue as it is empty. Returning...", :exception=>#<LogStash::Json::ParserError: Unrecognized token 'INFO': was expecting 'null', 'true', 'false' or NaN
at [Source: (byte[])"INFO |2023-07-20 00:05:09 |1 | manageQueue.py 324 | There is nothing to process on the queue as it is empty. Returning..."; line: 1, column: 6]>}
[2023-07-20T00:06:46,908][WARN ][logstash.filters.json ] Error parsing json {:source=>"message", :raw=>"Thu Jul 20 00:06:38 2023 sent heartbeat", :exception=>#<LogStash::Json::ParserError: Unrecognized token 'Thu': was expecting ('true', 'false' or 'null')
at [Source: (byte[])"Thu Jul 20 00:06:38 2023 sent heartbeat"; line: 1, column: 5]>}
[2023-07-20T00:06:52,384][WARN ][logstash.filters.json ] Error parsing json {:source=>"message", :raw=>"Thu Jul 20 00:06:42 2023 sent heartbeat", :exception=>#<LogStash::Json::ParserError: Unrecognized token 'Thu': was expecting ('true', 'false' or 'null')
at [Source: (byte[])"Thu Jul 20 00:06:42 2023 sent heartbeat"; line: 1, column: 5]>}
[2023-07-20T00:06:57,717][WARN ][logstash.filters.json ] Error parsing json {:source=>"message", :raw=>"Thu Jul 20 00:06:45 2023 sent heartbeat", :exception=>#<LogStash::Json::ParserError: Unrecognized token 'Thu': was expecting ('true', 'false' or 'null')
at [Source: (byte[])"Thu Jul 20 00:06:45 2023 sent heartbeat"; line: 1, column: 5]>}
[2023-07-20T00:07:14,423][WARN ][logstash.filters.json ] Error parsing json {:source=>"message", :raw=>"Thu Jul 20 00:06:51 2023 sent heartbeat", :exception=>#<LogStash::Json::ParserError: Unrecognized token 'Thu': was expecting ('true', 'false' or 'null')
at [Source: (byte[])"Thu Jul 20 00:06:51 2023 sent heartbeat"; line: 1, column: 5]>}
[2023-07-20T00:07:19,513][WARN ][logstash.filters.json ] Error parsing json {:source=>"message", :raw=>"Thu Jul 20 00:06:52 2023 sent heartbeat", :exception=>#<LogStash::Json::ParserError: Unrecognized token 'Thu': was expecting ('true', 'false' or 'null')
at [Source: (byte[])"Thu Jul 20 00:06:52 2023 sent heartbeat"; line: 1, column: 5]>}
[2023-07-20T00:07:25,422][WARN ][logstash.filters.json ] Error parsing json {:source=>"message", :raw=>"Thu Jul 20 00:06:52 2023 sent heartbeat", :exception=>#<LogStash::Json::ParserError: Unrecognized token 'Thu': was expecting ('true', 'false' or 'null')
at [Source: (byte[])"Thu Jul 20 00:06:52 2023 sent heartbeat"; line: 1, column: 5]>}
[2023-07-20T00:07:30,430][WARN ][logstash.filters.json ] Error parsing json {:source=>"message", :raw=>"Thu Jul 20 00:06:53 2023 sent heartbeat", :exception=>#<LogStash::Json::ParserError: Unrecognized token 'Thu': was expecting ('true', 'false' or 'null')
at [Source: (byte[])"Thu Jul 20 00:06:53 2023 sent heartbeat"; line: 1, column: 5]>}
[2023-07-20T00:07:41,453][WARN ][logstash.filters.json ] Error parsing json {:source=>"message", :raw=>"Thu Jul 20 00:07:12 2023 sent heartbeat", :exception=>#<LogStash::Json::ParserError: Unrecognized token 'Thu': was expecting ('true', 'false' or 'null')
at [Source: (byte[])"Thu Jul 20 00:07:12 2023 sent heartbeat"; line: 1, column: 5]>}
[2023-07-20T00:07:57,714][WARN ][logstash.filters.json ] Error parsing json {:source=>"message", :raw=>"Thu Jul 20 00:07:33 2023 sent heartbeat", :exception=>#<LogStash::Json::ParserError: Unrecognized token 'Thu': was expecting ('true', 'false' or 'null')
at [Source: (byte[])"Thu Jul 20 00:07:33 2023 sent heartbeat"; line: 1, column: 5]>}
[2023-07-20T00:08:03,714][WARN ][logstash.filters.json ] Error parsing json {:source=>"message", :raw=>"Thu Jul 20 00:07:36 2023 sent heartbeat", :exception=>#<LogStash::Json::ParserError: Unrecognized token 'Thu': was expecting ('true', 'false' or 'null')
at [Source: (byte[])"Thu Jul 20 00:07:36 2023 sent heartbeat"; line: 1, column: 5]>}