question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add fluentd support

See original GitHub issue

Is your feature request related to a problem? Please describe. At this moment it’s not possible to write logs into Fluentd. It’s possible to enable http plugin there but it accept data in different format

Describe the solution you’d like I’d like to be able to write

ILogger log = new LoggerConfiguration()
  .MinimumLevel.Verbose()
  .WriteTo.Http(new FluentdSink("http://my.fluent.d:9880"))
  .CreateLogger();

and write event there.

Describe alternatives you’ve considered Existing Fluentd sink package is unusable and buggied. The most urgent concern is it escapes everything with quotes, so I’m unable to execute range and others non-text queries.

Additional context

Here is a link to fluentd http format documentation: https://docs.fluentd.org/input/http#basic-usage

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
FantasticFiascocommented, Nov 21, 2019

I’ve created a new sample repository showcasing this sink sending log events to Fluentd. I’ll close this issue, but if you find any other issues please don’t hesitate to create them.

1reaction
FantasticFiascocommented, Nov 19, 2019

The Fluentd http input plugin in is supporting JSON arrays of log events, and since this sink supports that as well I’m confident we can make it work.

I am about to create a repository showcasing the integration, and my hypothesis is that writing like this should just work:

ILogger log = new LoggerConfiguration()
  .MinimumLevel.Verbose()
  .WriteTo.Http("http://my.fluent.d:9880/myapp.test", batchFormatter: new ArrayBatchFormatter())
  .CreateLogger();
Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation
Install by RPM Package (Red Hat Linux) · Install by DEB Package (Debian/Ubuntu) · Install by .dmg Package (macOS) · Install by .msi...
Read more >
Quickstart
Let's get started with Fluentd! Fluentd is a fully free and fully open-source log collector that instantly enables you to have a 'Log...
Read more >
Plugin Management
The fluent-gem command is used to install Fluentd plugins. This is a wrapper around the gem command.
Read more >
Frequently Asked Questions
Fluentd is an open source data collector for building the unified logging layer. Once installed on a server, it runs in the background...
Read more >
How to Install & Activate Fluent Support
First, go to the Plugins page of your WordPress dashboard & click on the Add New button. · Click on the Install button...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found