graylog not log!
i am using graylog2 in several projects. nodeJS and meteorJS
but seems that some logs are missed!!
after a lot of headache we figured out exactly what was the problem.
in json object that we sent as detailes, we used with keywords from graylog for field names.
graylog don't log them! and not raised any error or warning!!!
it's crazy! how the developer can found this problem? and how he can know from which keywords he need to avoid??
for example: 'error', 'host' are keyword .
so if you write:
catch(ex){
logger.error("error in registration", "an exception raised through registration process", {error: ex})
}
nothing log!!!
but if :
logger.error("error in registration", "an exception raised through registration process", {err: ex})
Looking through the code I don't see anything that suggests what the problem is; could this be a problem with Graylog? Is there anything in Graylog's logs that gives any hints?
graylog not log! i am using graylog2 in several projects. nodeJS and meteorJS but seems that some logs are missed!! after a lot of headache we figured out exactly what was the problem. in json object that we sent as detailes, we used with keywords from graylog for field names. graylog don't log them! and not raised any error or warning!!! it's crazy! how the developer can found this problem? and how he can know from which keywords he need to avoid??
for example: 'error', 'host' are keyword . so if you write:
nothing log!!!
but if :
all it's ok!!!!