Comments (6)
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.
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.
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.
Thanks, wasn't sure exactly how much it was adding. Thank you for your help :)
from newrelic-logenricher-dotnet.
https://issues.newrelic.com/browse/TP-6837
from newrelic-logenricher-dotnet.
Work has been completed on this issue.
from newrelic-logenricher-dotnet.
Related Issues (20)
- NLog MappedDiagnosticsContext and version missmatch for 1.2 package HOT 4
- NewRelic.Agent.Api package dependency requires an assembly binding redirect HOT 14
- Integration Test HOT 5
- Integration Test 2 Edited title at 3:45pm HOT 6
- Add option to remove "Message.Properties" prefix from custom enriched properties HOT 7
- Test: Story 7:26 am edited title 7:34am HOT 5
- Test Story 2: 7:43 am Check on Description HOT 5
- Test 3: Check if the additional text still shows up. HOT 10
- Test 4 Story Sync to Jira - nkumar HOT 5
- Test default priority level 3:23pm. HOT 4
- Test Bug 1: (9/14/2022) HOT 4
- Test of a Story 1 9/14/2022 HOT 3
- Test 9/16/2022 HOT 4
- Story Test 9/16/2022 HOT 3
- [Repolinter] Open Source Policy Issues HOT 2
- Sink for Serilog - Azure Functions HOT 7
- [Repolinter] Open Source Policy Issues HOT 1
- Update NuGet Packages and Build Targets for all LogEnrichers HOT 1
- [Repolinter] Open Source Policy Issues HOT 1
- Output trace.id and span.id in log format. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from newrelic-logenricher-dotnet.