Closed Nezteb closed 1 year ago
Hey. I feel like you should start by digging into the FluentBit configuration, it looks like it doesn't have a rule to properly parse JSON in the container's stdout file (you can tail it to see if LoggerJSON does its job and sends formatted logs there first).
@AndrewDryga I would but my entire team got laid off today so this is no longer my problem. 😄 In the end I doubt it's a logger_json
issue but I wanted to at least make an issue and see what others thought.
Take care!
I'm sorry to hear that @Nezteb, I know how that feels. Please take care of yourself, I bet you and the other guys will find a better place to work.
I set up
logger_json
with a Phoenix service and am using theDatadogLogger
(with all the same configs as in the README).However, whenever I log something now, I see this in DataDog:
When clicking the "copy log as JSON" button in the top right, I get:
So, using the example from the README:
All of that information gets shoved into the
message
field in DataDog so it's not parsed and turned into attributes:The only thing I suspect at this point is the DataDog agent itself or the FluentBit container we use for log routing. We don't have any crazy custom configuration for these though. The DataDog agent has the following env vars set up:
But as far as I can tell from DataDog docs none of these should be changing how JSON logs are being parsed. So my last guess is that I've set up
logger_json
incorrectly?Any and all ideas/help is appreciated!