9.2. Log Transmission Issues #
When transmitting both CSV and JSON logs, parsing errors may occur for individual log entries:
{
"level": "error",
"ts": "2025-08-25T09:54:44.882+0300",
"msg": "Failed to process entry",
"resource": {
"service.instance.id": "c422dd3b-53f2-4adc-9fd3-3a8f9212d27b",
"service.name": "pgpro-otel-collector",
"service.version": "v0.4.0"
},
"otelcol.component.id": "filelog",
"otelcol.component.kind": "receiver",
"otelcol.signal": "logs",
"operator_id": "json_parser",
"operator_type": "json_parser",
"error": "json: string unexpected end of JSON input",
"action": "send",
"entry.timestamp": "0001-01-01T00:00:00.000Z",
"log.file.name": "postgresql-2025-08-25.json"
}
This issue may be related to the following filelog parameters:
receivers:
filelog:
max_log_size: 1MiB
force_flush_period: 500ms
...
If the log size exceeds 1 MiB or reading it takes more than 500 ms, the processed data will be incomplete. In this case, increase the parameter values as follows:
receivers:
filelog:
max_log_size: 20MB
force_flush_period: 10m
...
This assumes that filelog is initially configured properly for reading Postgres Pro logs.