GSA-TTS / cg-logshipper

Sample code for draining Cloud Foundry logs to S3 and New Relic using FluentBit
Other
6 stars 2 forks source link

Add INPUT suitable to consume log-drain messages, and parsing #4

Closed akf closed 1 year ago

akf commented 1 year ago

The parsing here does a nice job on the "tags" and "gauge" parts of the messages, at least as far as feeding them into New Relic is concerned. This provides log data that should be easy to set up alerting on based on CPU, memory, and disk usage.

The names I used for some of the keys would be worth a review!

The parser expressions and lua filters are probably a bit fragile at this stage.

Here's a screenshot of part of what NR gets, restricted to records where gauge.name was populated.

NR_gauge_name