Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging Support #19

Open
CrystalKeck27 opened this issue Dec 2, 2024 · 1 comment
Open

Logging Support #19

CrystalKeck27 opened this issue Dec 2, 2024 · 1 comment

Comments

@CrystalKeck27
Copy link

I added the newrelic-infra service to my nix flakes, and the agent does show up on my newrelic account.
However, the newrelic interface lacks log captures for this host.

According to the New Relic docs,

Configuration files direct your system to forward the log sources you want to appear in New Relic. [...] Our infrastructure agent uses .yml files to configure logging.

I ran a system search for files named logging.* but nothing related to New Relic turned up. I also tried adding logging declarations to the newrelic-infra.yml file and creating the /etc/newrelic-infra/logging.d/logging.yml to no avail.

Is there a way to get logging using this tool?

@DavSanchez
Copy link
Owner

DavSanchez commented Dec 2, 2024

Hi!

I haven't added logging or integrations support yet, given that much of the required structure involved placing content in directories following Linux's FHS, however let me take a shot at implementing it but could take a while, I'll need to package a certain plugin first. After implementing it, I might start working on integrations with nri-flex.

Meanwhile, you might be able to activate logging by following Enable log forwarding on agent installed using Linux tarball, creating certain directories on /var/db and /etc, using fluent-bit and this plugin (the one I'd need to package for Nix). For that last one, though, currently I'm not sure how NixOS will play with shared objects just placed there. In any case, I'll work on packaging it and including in the newrelic-infra module.

And thanks for using this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants