Open iquirino opened 1 year ago
I have seen this type of log before. I my case it was not logging a normal span which gets processed, but belonged to I think a "Buffer has not enough capacity" error log. In your screenshot there is also no sign, that this is a log below the error log level (e.g. that this is a log with INFO log level)
You are right:
There are any way to decrease the size of this logs? Let's say, skip the stdout of the traces.
Thank you @JannikBrand
@iquirino, What is the log line that leads up to this message? You could possibly turn logging off for that particular logger.
Hi guys, I'm having the same issue basically. Data-prepper is sending failed traces to stdout and completely messing with my OpenSearch logs since each line is one message in OS.
@dlvenable The preceding line should be "WARN org.opensearch.dataprepper.plugins.source.oteltrace.OTelTraceGrpcService - Failed to parse request with error 'name cannot be an empty string'. Request body: resource_spans {". I assume that @iquirino has a similar issue.
I guess you mean something like this?
logger.parser.name = org.opensearch.dataprepper.parser logger.parser.level = error
Is there another way to handle failing traces, instead of sending them to stdout... sending to a separate index or something like that? Or just delete them.
Describe the bug I've updated my log4j configuration and it stopped to save logs o file system, so, it worked well. I've fixed all log levels to errors but data-prepper continues printing the content of the logs received.
To Reproduce 1: Updated log4j configutation at '/usr/share/data-prepper/config/log4j2-rolling.properties' with:
Expected behavior I dont want to have all requests logged to my console, I just want to have errors logged to it.
Screenshots
Environment (please complete the following information):
Additional context I am currently using the lates version of data-prepper