Here are two docs.
First with correct date and parsing
"1","O","I","240917 153530","E","0","12757","PHSE","OP20BBA1","PRCNAW01","/var/opt/data/flat/AxwayGateway/IN/opaxvgw1/","9561280-20BCNA01","20BCNA01","20B11","CNA08","240917 153530","240917 153530","0"
{
"_index": "lgr-axv-axway-default-2024.09.17-000074",
"_type": "_doc",
"_id": "9vcyAJIBD6Sy3UurCQil",
"_version": 1,
"_score": null,
"_source": {
"date": "240917 153530",
"agent": {
"hostname": "opaxvgw1",
"name": "xxxx",
"id": "895e074c-03d7-44c0-91bc-5b52a390612a",
"type": "filebeat",
"ephemeral_id": "17a8e074-93ee-4294-978b-6ba5fa6fdf5b",
"version": "7.7.1"
},
"code": "0",
"dst": "PRCNAW01",
"log": {
"file": {
"path": "/opt/application/.../stat.dat"
},
"offset": 24981
},
"penta_cible": "CNA08",
"lgr_uniq_id": "b5wyAJIBmHWdItooCP4t",
"type": "1",
"mode": "I",
"path": "/var/opt/data/flat/.../opaxvgw1/",
"protocol": "PHSE",
"ecs": {
"version": "1.5.0"
},
"lgr": {
"meta": {
"component": "default",
"cloudid": "[...]",
"logsize": 902,
"fmt": "stat",
"env": "prd"
}
},
"@version": "1",
"plan": "prd_ods_l_02",
"direction": "O",
"file_component": "9561280-20BCNA01",
"penta_source": "20B11",
"src": "OP20BBA1",
"idf": "20BCNA01",
"date_end": "2024-09-17T15:35:30.000+02:00",
"received": "2024-09-17T13:35:32.246223Z",
"message": "\"1\",\"O\",\"I\",\"240917 153530\",\"E\",\"0\",\"12757\",\"PHSE\",\"OP20BBA1\",\"PRCNAW01\",\"/var/opt/data/flat/AxwayGateway/IN/opaxvgw1/\",\"9561280-20BCNA01\",\"20BCNA01\",\"20B11\",\"CNA08\",\"240917 153530\",\"240917 153530\",\"0\"",
"tags": [
"beats_input_codec_plain_applied",
"beats_input_codec_json_applied",
"routage-main-ods",
"routage-main-cloudid"
],
"input": {
"type": "log"
},
"retries": "0",
"@timestamp": "2024-09-17T15:35:30.000+02:00",
"size": "12757",
"date_begin": "2024-09-17T15:35:30.000+02:00",
"kafka": {
"headers": [],
"partition": 0,
"offset": 489122125,
"topic": "...",
"key": ""
},
"fields": {
"produit": "stats_flow",
"program": "axv_stat_prd"
},
"status": "E"
},
"fields": {
"date_end": [
"2024-09-17T13:35:30.000Z"
],
"received": [
"2024-09-17T13:35:32.246Z"
],
"@timestamp": [
"2024-09-17T13:35:30.000Z"
],
"date_begin": [
"2024-09-17T13:35:30.000Z"
]
},
"sort": [
1726580130000
]
}
Second with "empty" date and error
"1","O","I","240917 153502","C","166","0","PHSE","44O06","DRP26B01","/var/opt/data/flat/AxwayGateway/IN/opaxvgw1","9561121-44O06","44OZZZ03","44O06","26B06","","240917 153502","0"
{
"_index": "lgr-axv-axway-reject-2024.09.17-000074",
"_type": "_doc",
"_id": "o_ExAJIBD6Sy3UuronvT",
"_version": 1,
"_score": null,
"_source": {
"date": "240917 153502",
"agent": {
"hostname": "opaxvgw1",
"name": "...",
"id": "895e074c-03d7-44c0-91bc-5b52a390612a",
"ephemeral_id": "17a8e074-93ee-4294-978b-6ba5fa6fdf5b",
"type": "filebeat",
"version": "7.7.1"
},
"code": "166",
"dst": "DRP26B01",
"log": {
"file": {
"path": "/opt/application/.../stat.dat"
},
"offset": 1575
},
"penta_cible": "26B06",
"lgr_uniq_id": "fpwxAJIBmHWdItoonq3W",
"type": "1",
"error": {
"message": "cannot parse empty date"
},
"mode": "I",
"path": "/var/opt/data/flat/.../opaxvgw1",
"protocol": "PHSE",
"ecs": {
"version": "1.5.0"
},
"lgr": {
"meta": {
"component": "default",
"cloudid": "[...]",
"logsize": 879,
"fmt": "stat",
"env": "prd"
}
},
"@version": "1",
"plan": "prd_ods_l_02",
"direction": "O",
"file_component": "9561121-44O06",
"penta_source": "44O06",
"src": "44O06",
"idf": "44OZZZ03",
"date_end": "240917 153502",
"message": "\"1\",\"O\",\"I\",\"240917 153502\",\"C\",\"166\",\"0\",\"PHSE\",\"44O06\",\"DRP26B01\",\"/var/opt/data/flat/AxwayGateway/IN/opaxvgw1\",\"9561121-44O06\",\"44OZZZ03\",\"44O06\",\"26B06\",\"\",\"240917 153502\",\"0\"",
"tags": [
"beats_input_codec_plain_applied",
"beats_input_codec_json_applied",
"routage-main-ods",
"routage-main-cloudid"
],
"input": {
"type": "log"
},
"retries": "0",
"@timestamp": "2024-09-17T15:35:02.000+02:00",
"size": "0",
"date_begin": "",
"kafka": {
"headers": [],
"partition": 0,
"offset": 489101404,
"topic": "...,
"key": ""
},
"fields": {
"produit": "stats_flow",
"program": "axv_stat_prd"
},
"status": "C"
},
"fields": {
"@timestamp": [
"2024-09-17T13:35:02.000Z"
]
},
"sort": [
1726580102000
]
}