Code Monkey home page Code Monkey logo

Comments (6)

nr-ahemsath avatar nr-ahemsath commented on June 30, 2024

Hello, thanks for bringing this issue to our attention.

Do you also have the New Relic .NET Agent enabled for your application? Unless the agent is attached to the process using the enricher, no additional fields will be added to log events.

Thanks,
Alex

from newrelic-logenricher-dotnet.

natureventyrnu avatar natureventyrnu commented on June 30, 2024

Hey, thank you for your answer.

I wasn't running the agent locally, so that would explain that there were no changes. But on production, I'm running my .net core app in a docker container, and in the container, I have installed: newrelic-netcore20-agent_8.30.0.0_amd64.deb

I get data reported to new relic, but I have not done anything to attach it to the .net processes (except installed it in the docker container). All reporting is done through stdout -> aws cloudwatch which is then reported to new relic through the lambda method (newrelic-log-ingestion). The code has configured it to write to Console.

I've also installed NewRelic.Agent.Api through NuGet (note that I have just installed the nuget package, but haven't used it in any code)

An example of a logged entry from production (with the agent running):

{
    "timestamp": 1597259225808,
    "log.level": "Information",
    "message.template": "User logged in.",
    "message": "User logged in.",
    "Message.Properties.SourceContext": "MyProject.Web.Areas.Admin.Pages.LoginModel",
    "Message.Properties.ActionId": "d323674e-3c0c-462e-a30f-ae0840868f43",
    "Message.Properties.ActionName": "/Login",
    "Message.Properties.RequestId": "0HM1UU88S9MRU:00000006",
    "Message.Properties.RequestPath": "/Admin/Login",
    "Message.Properties.CorrelationId": null,
    "Message.Properties.ConnectionId": "0HM1UU88S9MRU",
    "entity.name": "MyProject_production",
    "entity.type": "SERVICE",
    "entity.guid": "xxxxxxxxxxx",
    "hostname": "xxxxxxxxxx.eu-central-1.compute.internal"
}

Has that been enriched by the newrelic enricher? (I'm uncertain about which fields are added)

from newrelic-logenricher-dotnet.

nr-ahemsath avatar nr-ahemsath commented on June 30, 2024

entity.type and entity.guid are definitely coming from the enricher, so it looks like you've been successful in setting up the use of the enricher with the agent.

from newrelic-logenricher-dotnet.

natureventyrnu avatar natureventyrnu commented on June 30, 2024

Thanks, wasn't sure exactly how much it was adding. Thank you for your help :)

from newrelic-logenricher-dotnet.

workato-integration avatar workato-integration commented on June 30, 2024

https://issues.newrelic.com/browse/TP-6837

from newrelic-logenricher-dotnet.

workato-integration avatar workato-integration commented on June 30, 2024

Work has been completed on this issue.

from newrelic-logenricher-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.