cf-nodejs-logging-support icon indicating copy to clipboard operation
cf-nodejs-logging-support copied to clipboard

Any Idea how to format a custom field for elastic analysis

Open WorkAlexGahr opened this issue 8 years ago • 2 comments

Hello ,

in our application we will during a trace also write certain numeric statistic like memory usage etc.. All these additional fields are written as custom fields. When we check on the custom field in Kibana the fields are there just as string fields and not as numeric.

Is there a way how to format custom fields as numeric?

WorkAlexGahr avatar Sep 15 '17 11:09 WorkAlexGahr

At the moment this is due to logging requirements from logstash. We may add the option to disable the parsing in the future. if you want this behaviour, you need to change this parsing rules: https://github.com/SAP/cf-nodejs-logging-support/blob/ef14c07ad7b1272602ec01b0bd026c16357c2914/cf-nodejs-logging-support-core/log-core.js#L167

nicklas-dohrn avatar Sep 22 '17 10:09 nicklas-dohrn

Hallo Niklas ,

yea thats quite what i need first. Thanks

WorkAlexGahr avatar Dec 10 '17 12:12 WorkAlexGahr