What Is New Relic?

New Relic is web application performance service designed to figure in real-time together with your live web app. New Relic Infrastructure provides flexible, dynamic server monitoring. You can see the important performance data of your app in New Relic, like browser reaction time by geography and browser type, web transactions in real-time, etc.

Steps to Registering With New Relic

  1. Go to https://newrelic.com/
  2. Click on Sign Up if you do not have an account already.

New Relic sign-up screenshot.

 

Login to New Relic

  1. Go to https://newrelic.com/
  2. Click on Login.New Relic login screenshot.
  3. Provide your credentials.
  4. Go to More -> Insights -> Manage data –> Click on the “+” icon in front of Insert Keys.
  5. Get the accountId and insert the key on your screen.Insert Key page screenshot.
  6. Save your Key and Account ID.

Steps to Enable Logging into the Mulesoft Application 

In Anypoint Studio, go to Project.

Add these details in logger: (Logger, Custom Apisero Logger).

The logger should contain the eventType field.

Open src/main/resources/log4j2.xml and add the below XML tag in Configuration/Appenders

 

The URL should follow the below format:

<AppenderRef ref="NEWRELIC" />

 Now, Run Application.

See the Console Log.

Console Log screenshot.

 View the Logs in New Relic

  1.  Go to https://newrelic.com/
  2. Go to the Data Explorer.Data Explorer page screenshot.
  3. Type the NRQL Query: Select * from Insightslogs.Insightslogs page screenshot.
  4. Go to the right next tab to the open window and you can see the logs.Log view screenshot.



Source link

Write A Comment