output:
metadata'=>{'container_name'=>'%{[json][metadata][container_name]}'}, 'version'=>'%{[json][version]}', '@timestamp'=>2023-04-24T11:46:09.796967Z, 'message'=>['{\'version\': \'1.1.0\', \'timestamp\': \'2023-04-24T11:46:09.008Z\', \'severity\': \'warning\', \'service_id\': \'eric-log-transformer\', \'metadata\' : {\'namespace\': \'staging2\', \'pod_name\': \'eric-log-transformer-86b7674897-p66sc\', \'node_name\': \'ip-172-31-194-204.eu-north-1.compute.internal\', \'container_name\': \'logtransformer\'}, \'message\': \'Could not index event to OpenSearch. {:status=>400, :action=>['index', {:_id=>nil, :_index=>'adp-app-logs-2023.04.24', :routing=>nil}, {'logplane'=>'adp-app-logs', 'filename'=>'/logs/logtransformer.log', '@version'=>'1', 'timestamp'=>'%{[json][timestamp]}', 'metadata'=>{'container_name'=>'%{[json][metadata][container_name]}'}, 'version'=>'%{[json][version]}', '@timestamp'=>2023-04-24T11:46:08.790699Z, 'message'=>['{\\'version\\': \\'1.1.0\\', \\'timestamp\\': \\'2023-04-24T11:46:08.275Z\\', \\'severity\\': \\'warning\\', \\'service_id\\': \\'eric-log-transformer\\', \\'metadata\\' : {\\'namespace\\': \\'staging2\\', \\'pod_name\\': \\'eric-log-transformer-86b7674897-p66sc\\', \\'node_name\\': \\'ip-172-31-194-204.eu-north-1.compute.internal\\', \\'container_name\\': \\'logtransformer\\'}, \\'message\\': \\'Could not index event to OpenSearch. {:status=>400, :action=>['index', {:_id=>nil, :_index=>'adp-app-logs-2023.04.24', :routing=>nil}, {'logplane'=>'adp-app-logs', 'filename'=>'/logs/logtransformer.log', '@version'=>'1', 'timestamp'=>'%{[json][timestamp]}', 'metadata'=>{'container_name'=>'%{[json][metadata][container_name]}'}, 'version'=>'%{[json][version]}', '@timestamp'=>2023-04-24T11:46:07.778117Z, 'message'=>['{\\\\'version\\\\': \\\\'1.1.0\\\\', \\\\'timestamp\\\\': \\\\'2023-04-24T11:46:07.178Z\\\\', \\\\'severity\\\\': \\\\'warning\\\\', \\\\'service_id\\\\': \\\\'eric-log-transformer\\\\', \\\\'metadata\\\\' : {\\\\'namespace\\\\': \\\\'staging2\\\\', \\\\'pod_name\\\\': \\\\'eric-log-transformer-86b7674897-p66sc\\\\', \\\\'node_name\\\\': \\\\'ip-172-31-194-204.eu-north-1.compute.internal\\\\', \\\\'container_name\\\\': \\\\'logtransformer\\\\'}, \\\\'message\\\\': \\\\'Could not index event to OpenSearch. {:status=>400, :action=>['index', {:_id=>nil, :_index=>'adp-app-logs-2023.04.24', :routing=>nil}, {'logplane'=>'adp-app-logs', 'filename'=>'/logs/logtransformer.log', '@version'=>'1', 'timestamp'=>'%{[json][timestamp]}', 'metadata'=>{'container_name'=>'%{[json][metadata][container_name]}'}, 'version'=>'%{[json][version]}', '@timestamp'=>2023-04-24T11:46:06.697581Z, 'message'=>['{\\\\\\\\'version\\\\\\\\': \\\\\\\\'1.1.0\\\\\\\\', \\\\\\\\'timestamp\\\\\\\\': \\\\\\\\'2023-04-24T11:46:05.973Z\\\\\\\\', \\\\\\\\'severity\\\\\\\\': \\\\\\\\'warning\\\\\\\\', \\\\\\\\'service_id\\\\\\\\': \\\\\\\\'eric-log-transformer\\\\\\\\', \\\\\\\\'metadata\\\\\\\\' : {\\\\\\\\'namespace\\\\\\\\': \\\\\\\\'staging2\\\\\\\\', \\\\\\\\'pod_name\\\\\\\\': \\\\\\\\'eric-log-transformer-86b7674897-p66sc\\\\\\\\', \\\\\\\\'node_name\\\\\\\\': \\\\\\\\'ip-172-31-194-204.eu-north-1.compute.internal\\\\\\\\', \\\\\\\\'container_name\\\\\\\\': \\\\\\\\'logtransformer\\\\\\\\'}, \\\\\\\\'message\\\\\\\\': \\\\\\\\'Could not index event to OpenSearch. {:status=>400, :action=>['index', {:_id=>nil, :_index=>'adp-app-logs-2023.04.24', :routing=>nil}, {'logplane'=>'adp-app-logs', 'filename'=>'/logs/logtransformer.log', '@version'=>'1', 'timestamp'=>'%{[json][timestamp]}', 'metadata'=>{'container_name'=>'%{[json][metadata][container_name]}'}, 'version'=>'%{[json][version]}', '@timestamp'=>2023-04-24T11:46:05.691505Z, 'message'=>['{\\\\\\\\\\\\\\\\'version\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\'1.1.0\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\'timestamp\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\'2023-04-24T11:46:05.175Z\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\'severity\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\'warning\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\'service_id\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\'eric-log-transformer\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\'metadata\\\\\\\\\\\\\\\\' : {\\\\\\\\\\\\\\\\'namespace\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\'staging2\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\'pod_name\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\'eric-log-transformer-86b7674897-p66sc\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\'node_name\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\'ip-172-31-194-204.eu-north-1.compute.internal\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\'container_name\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\'logtransformer\\\\\\\\\\\\\\\\'}, \\\\\\\\\\\\\\\\'message\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\'Could not index event to OpenSearch. {:status=>400, :action=>['index', {:_id=>nil, :_index=>'adp-app-logs-2023.04.24', :routing=>nil}, {'logplane'=>'adp-app-logs', 'filename'=>'/logs/logtransformer.log', '@version'=>'1', 'timestamp'=>'%{[json][timestamp]}', 'metadata'=>{'container_name'=>'%{[json][metadata][container_name]}'}, 'version'=>'%{[json][version]}', '@timestamp'=>2023-04-24T11:46:04.686430Z, 'message'=>['{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'version\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'1.1.0\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'timestamp\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'2023-04-24T11:46:04.185Z\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'severity\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'warning\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'service_id\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'eric-log-transformer\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'metadata\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' : {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'namespace\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'staging2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'pod_name\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'eric-log-transformer-86b7674897-p66sc\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'node_name\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ip-172-31-194-204.eu-north-1.compute.internal\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'container_name\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'logtransformer\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'}, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'message\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\': \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'Could not index event to OpenSearch.