Ilmar Marques
05/03/2024, 11:43 AMhttplogreceiver/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.nitya-signoz
05/03/2024, 11:49 AMIlmar Marques
05/03/2024, 11:57 AMIlmar Marques
05/03/2024, 11:57 AMIlmar Marques
05/03/2024, 11:58 AMnitya-signoz
05/06/2024, 4:26 AMIlmar Marques
05/10/2024, 10:04 PMIlmar Marques
05/10/2024, 10:05 PMIlmar Marques
05/10/2024, 10:05 PMcurl --location '<https://myserver.service.com>' --header 'Content-Type: application/json' --data @sample-copy.request
Ilmar Marques
05/10/2024, 10:06 PMIlmar Marques
05/10/2024, 10:06 PMIlmar Marques
05/16/2024, 3:24 PMnitya-signoz
05/20/2024, 3:14 PMnitya-signoz
05/21/2024, 3:39 PMreceivers:
httplogreceiver/json:
endpoint: 0.0.0.0:8082
source: json
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
batch:
send_batch_size: 10000
send_batch_max_size: 11000
timeout: 10s
extensions:
health_check:
endpoint: 0.0.0.0:13133
zpages:
endpoint: 0.0.0.0:55679
pprof:
endpoint: 0.0.0.0:1777
exporters:
logging:
verbosity: detailed
service:
telemetry:
metrics:
address: 0.0.0.0:8888
extensions:
- health_check
- zpages
- pprof
pipelines:
logs:
receivers: [otlp, httplogreceiver/json]
processors: []
exporters: [logging]
now trey sending the request to localhost:8082SigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.
Powered by