> ## Documentation Index
> Fetch the complete documentation index at: https://docs.megaport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Monitoring MCR

> This help topic describes how to view MCR service logs and usage reports in the Megaport Portal.

export const Anchor = ({name}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Anchor -';
  if (name === undefined || name === null || name === 'undefined') {
    console.error(`${errorPrefix} \`name\` must have a value — rendering an empty string instead`);
    return <></>;
  }
  const raw = typeof name === 'string' ? name : JSON.stringify(name);
  const id = raw.replace(/\s+/g, '-').replace(/[^A-Za-z0-9_-]/g, '').replace(/-+/g, '-').replace(/^-+|-+$/g, '');
  if (!id) {
    console.error(`${errorPrefix} \`name\` "${name}" sanitizes to an empty id — rendering an empty string instead`);
    return <></>;
  }
  return <a style={{
    scrollMarginTop: 'var(--scroll-mt)'
  }} id={id}></a>;
};

export const Image = ({src, alt = '', caption, width, height, shadow}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Image -';
  if (typeof src !== 'string') {
    src = String(src);
  }
  if (!src || src === 'undefined') {
    console.error(`${errorPrefix} \`src\` is required — rendering an empty string instead`);
    return <></>;
  }
  const img = <img className={['mega-image-style', shadow ? 'shadow' : ''].join(' ')} src={src} alt={alt} width={width} height={height} style={{
    display: 'block'
  }} />;
  return caption ? <figure>
      {img}
      <figcaption style={{
    textAlign: 'center',
    width
  }}>{caption}</figcaption>
    </figure> : img;
};

export const Link = ({href, children}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Link -';
  if (typeof href !== 'string') {
    href = String(href);
  }
  if (!href || href === 'undefined') {
    console.error(`${errorPrefix} the \`href\` property is required — rendering an empty string instead`);
    return <></>;
  }
  if (href.includes('{') || href.toUpperCase().includes('%7B')) {
    console.error(`${errorPrefix} could not resolve a variable in href "${href}" — rendering an empty string instead`);
    return <></>;
  }
  const isExternal = (/^https?:\/\//).test(href);
  return <a href={href} className="link" target={isExternal ? '_blank' : undefined} rel={isExternal ? 'noreferrer' : undefined}>
      {children ?? href}
      {isExternal && <span className="sr-only"> (opens in a new tab)</span>}
    </a>;
};

This topic describes how to view service logs and usage reports for a Megaport Cloud Router (MCR) in the Megaport Portal. This information helps you troubleshoot issues and monitor the status, activity, and performance of your MCRs.

For visibility into the traffic routing on an MCR, see [Viewing Traffic Routing through MCR Looking Glass](/mcr/mcr-looking-glass).

Megaport offers a public API that you can use to access the services available through the Looking Glass. For more information, see [Megaport API Overview](/api).

<Anchor name="service-logs" />

## Viewing service logs

Viewing the service logs is a simple way to monitor the activity and performance of your MCRs. Megaport starts reporting metrics as soon as the MCR is live in the Megaport Portal.

You can also monitor the VXCs and BGP peering on MCR services, such as BGP session down, BGP authentication failure, and so on.

**To view service logs for an MCR**

1. Log in to the <Link href="https://portal.megaport.com">Megaport Portal</Link> and choose **Services**.
2. Click the gear icon next to the MCR.
   <Image src="/images/monitoring/service-gear-icon.png" alt="MCR gear icon" shadow={true} width={250} />
3. On the MCR Details page, click **Logs**.\
   The 100 most recent events are displayed, including the time zone of the log entries. The standard time zone formatting for MCR log messages is UTC.
4. To view VXC and BGP events, click the gear icon next to the VXC and click **Logs** on the Connection Details page.
   <Image src="/images/monitoring/mcr-service-logs.png" alt="Service Logs" shadow={true} width={900} />
   A green check mark indicates that the service is running as expected, or shows a non-critical event such as a speed change. A yellow warning icon indicates that there is a potential issue with the service.

<Note>
  Company Admins see an additional **Activity Logs** tab next to Service Logs. The Activity Logs tab displays user activity for the MCR, such as configuration changes and other administrative actions. For more information about activity logs, see [Viewing Activity Logs](/portal-admin/activity-logs).
</Note>

<Tip>
  For more information about investigating MCR issues, see [Troubleshooting MCR When Down or Unavailable](/troubleshooting/mcr/down) and [Troubleshooting MCR When a BGP Session is Down](/troubleshooting/mcr/bgp).
</Tip>

<Anchor name="usage-details" />

## Viewing usage details

The Service Graph provides helpful information such as inbound/outbound traffic and packet rates. The graph is useful for comparing monthly usage on a MCR. You can export the MCR usage data in comma-separated values (CSV) format for analysis in spreadsheets and databases.

You can access a Service Graph from these locations:

* From the **Services** page, click the gear icon, then select **Usage**. You will see a Service Graph for the selected service only.

* From **Tools** > **Service Telemetry**. This page shows usage for multiple services. You can filter the information for a specified date range and select a metric to display. For more information, see [Monitoring Services using the Service Telemetry Page](/monitoring/service-telemetry).

<Note>
  The Service Graph is updated every 5 minutes.
</Note>

**To view usage details for an MCR on the Services page**

1. Log in to the <Link href="https://portal.megaport.com">Megaport Portal</Link> and choose **Services**.

2. Click the gear icon next to the MCR.
   <Image src="/images/monitoring/service-gear-icon.png" alt="MCR details" shadow={true} width={250} />

3. On the MCR Details page, click **Usage**.\
   The Service Graph page appears, showing traffic by default.
   <Image src="/images/monitoring/mcr-usage-traffic.png" alt="Service Graph for an MCR" shadow={true} width={1000} />

4. In the **Date Range** field, enter the range of dates for which to view usage details. You can enter the date range manually using the date picker or select from the following options:

   * Last hour
   * Last 12 hours
   * Last 24 hours
   * Last week
   * Last month
   * Last 3 months

   The default time range is the last 24 hours.

5. In the **Metrics** drop-down list, select a metric for which to view usage details.\
   You can view a graph for one metric at a time.

   | **Metric** | **Description**                                                                                                                                                                             |
   | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | Packets    | In pps - Incoming packet rate to the MCR, measured in packets per second.<br />Out pps - Outbound packet rate from the MCR, measured in packets per second.                                 |
   | Traffic    | In Mbps - Number of inbound Megabits per second.<br />Out Mbps - Number of outbound Megabits per second.<br /> Configured Speed Mbps - Configured speed of the MCR, in Megabits per second. |

   You can customize the graph by selecting or clearing the check boxes for **In Mbps**, **Out Mbps**, and **Configured Speed** to show or hide data.

   Use the mouse to hover over a specific data point to see the values and exact timestamp.

6. Click **Export CSV** to download the displayed MCR usage data in CSV format.\
   You can use the CSV file to import the data into spreadsheets and databases. You can open the CSV file in any text editor.

7. Click **UTC** or your local time zone to change the time zone.

For more information about usage information and service logs, see [Monitoring Ports, VXCs, Megaport Internet, and IXs](/monitoring/port-vxc-monitoring). For billing information for MCR VXCs, see [VXC, Megaport Internet, and IX Billing](/finance/billing-details).

## Helpful references

* [IX Telemetry](/ix/ix-telemetry)
* [Monitoring MVE](/monitoring/mve-monitoring)
* [Monitoring NAT Gateway](/monitoring/nat-gateway-monitoring)
* [Monitoring Ports, VXCs, Megaport Internet, and IXs](/monitoring/port-vxc-monitoring)
* [Monitoring Service Activity in the Megaport Portal](/monitoring)
* [Monitoring Services for Status](/monitoring/service-status)
* [Monitoring Services using the Service Telemetry Page](/monitoring/service-telemetry)
* [Setting up MCR BGP notifications](/mcr/configuring-mcr#bgp-notification)
* [Viewing Activity Logs](/portal-admin/activity-logs)
