Hi everyone. I`m facing a very challenging issue while using with
httplogreceiver/json
collector with docker standalone version
v0.44.0
. Some attributes are
randomly not being consumed from a json body request and therefore not shown in the logs display:
http request:
{
"date": "2024-05-01T14:08:18.200Z",
"host": "myhost",
"attributes": {
"level": "INFO",
"logger": {
"my_name": "my_name value",
"name": "my logger"
},
"timestamp": 1714572498200
},
"_id": "AY80fB7-AADBCfRSe5c2mQAZ",
"message": "my message",
"status": "info",
"tags": ["service:my service","source:my source","sourcecategory:my category","filename:my.file","auth:api_key"],
"timestamp": 1714572498200,
"resources": {
"host": "my host"
},
}
also I`ve tried the request:
{
"date": "2024-05-01T14:08:18.200Z",
"service": "my service",
"host": "myhost",
"attributes": {
"level": "INFO",
"logger": {
"my_name": "my_name value",
"name": "my logger"
},
"timestamp": 1714572498200
},
"_id": "AY80fB7-AADBCfRSe5c2mQAZ",
"source": "my source",
"message": "my message",
"status": "info",
"tags": ["service:my service","source:my source","sourcecategory:my category","filename:my.file","auth:api_key"],
"timestamp": 1714572498200,
"resources": {
"host": "my host"
},
"sourcecategory": "sourcecode",
"filename": "my.file",
"auth": "api_key"
}
both cases I get any of service, source, sourcecategory, filename, auth
randomly set in the logs. Would anyone know why or has ever experienced anything similar? Thanks.