> ## 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 Ports, VXCs, Megaport Internet, and IXs

> This help topic describes how to view Port, VXC, Megaport Internet, and IX 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 Port, Virtual Cross Connect (VXC), Megaport Internet connection, and IX in the Megaport Portal. These detailed logs and reports help you monitor connections, evaluate performance, and troubleshoot issues with your Megaport services.

For information about monitoring maintenance and outage events that affect your services, including current, scheduled, and past events, see [Monitoring Maintenance and Outage Events](/portal-admin/monitoring-events).

Megaport offers a public API that you can use to access the services available through the service logs and usage reports. To view the API documentation, see [dev.megaport.com](https://dev.megaport.com). For information about API monitoring, see [Monitoring Service Status with the API](/api/monitoring) and [Setting up OpenMetrics for Service Monitoring](/api/monitoring/api-openmetrics).

<Anchor name="service-logs" />

## Viewing service logs

Viewing the Service Logs is a simple way to monitor the activity and performance of your Megaport services. For example, you can view the status of a Port or if a BGP session is down on a VXC.

Megaport starts reporting metrics as soon as the service is live in the Megaport Portal. A Port’s Billing graph starts reporting metrics either when it goes live, or 14 days after it is configured. For more information about billing and Port contracts, see [Port Pricing and Contract Terms](/finance/port-pricing).

**To view service logs for a Port**

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 Port.
   <Image src="/images/monitoring/service-gear-icon.png" alt="Gear icon for a Port on the Services page" shadow={true} width={250} />
3. On the Port Details page, click **Logs**.\
   The Service Logs page appears.
   <Image src="/images/monitoring/service-logs-port.png" alt="Service Logs page where 100 of the most recent events are displayed for the Port" shadow={true} width={750} />
   The 100 most recent events are displayed. A green check mark indicates that the service is running. 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 Port, 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 issues, see [Troubleshooting](/troubleshooting/overview).
</Tip>

**To view service logs for a connection**

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 VXC, Megaport Internet connection, or IX.
   <Image src="/images/connections/vxc-gear-icon.png" alt="Gear icon for a Megaport connection (VXC, Megaport Internet, IX)" shadow={true} width={200} />
3. On the Connection Details page, click **Logs**.\
   The Service Logs page appears. The most recent log events are listed first.
   <Image src="/images/monitoring/vxc-logs.png" alt="Service Logs page where 100 of the most recent events are displayed for the connection" shadow={true} width={750} />
   The 100 most recent events are displayed. A green check mark indicates that the service is running as expected, or shows a non-critical event such as a change in speed. A yellow warning icon indicates that there is an event that requires attention.

<Note>
  Company Admins see an additional **Activity Logs** tab next to Service Logs. The Activity Logs tab displays user activity for the connection, 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 issues, see [Troubleshooting](/troubleshooting/overview).
</Tip>

<Anchor name="usage-details" />

## Viewing usage details

You can access a Service Graph to view usage details for a Port, VXC, or Megaport Internet connection. The Service Graph provides a visual representation of the service usage over time. You can view the graph for a specific date range and select a metric to display.

The Service Graph provides helpful information such as errors, optical signal levels, inbound/outbound packets, and inbound and outbound traffic. The graph is useful for comparing monthly usage on a Port or connection. You can export the service 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 a Port 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 Port.
   <Image src="/images/monitoring/service-gear-icon.png" alt="Port gear icon" shadow={true} width={250} />

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

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**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
   | -------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
   | Errors                                                                                                                                             | Errors/second - Rate of incoming and outgoing errors, measured in errors per second.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
   | Optical                                                                                                                                            | Optical signal levels for the Port, measured in decibel milliwatts. This metric is useful for measuring any signal loss over the connection. <br />Tx Power dBm - Light level transmitted.<br />Rx Power dBm - Light level received.<br /><br />For a 100 Gbps Port, optical light levels are reported per lane. When you select the **Optical** metric, the graph displays a separate line for each lane, **Tx Lane 1** through **Tx Lane 4** and **Rx Lane 1** through **Rx Lane 4**, instead of a single Tx Power and Rx Power pair.<br />For a Port with more than one interface, such as a Link Aggregation Group (LAG), the graph displays optical light levels for all of its interfaces. |
   | Packets                                                                                                                                            | In pps - Incoming packet rate to the Port, measured in packets per second<br />Out pps - Outbound packet rate from the Port, 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 Port, 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 Port 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.

**To view usage details for a connection**

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 VXC, Megaport Internet connection.
   <Image src="/images/connections/vxc-gear-icon.png" alt="VXC gear icon" shadow={true} width={200} />

3. On the Connection Details page, click **Usage**.\
   The Service Graph page appears.
   <Image src="/images/monitoring/vxc-usage-packets.png" alt="Service Graph page for VXC, Megaport Internet, or IX" shadow={true} width={750} />

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 connection, measured in packets per second<br />Out pps - Outbound packet rate from the connection, 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 Port, 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 connection 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.

8. For VXCs, select the A-End (the Port) or B-End (the destination) of the VXC from the **Source** drop-down list.

   On a VXC, you can view graphs from the A-End or B-End perspective. By default, the VXC graph displays the in and out details from the perspective of the end you are viewing. In an Internet Exchange graph you are simply connecting to that IX, so you can only view graphs for the A-End. Similar to IX, in a Megaport Internet graph you are connecting to the Transit router, so you can only view graphs for the A-End.

For information on how to view billing details for a connection, see [VXC, Megaport Internet, and IX Billing](/finance/billing-details).

## Helpful references

* [IX Telemetry](/ix/ix-telemetry)
* [Monitoring MCR](/monitoring/mcr-monitoring)
* [Monitoring MVE](/monitoring/mve-monitoring)
* [Monitoring NAT Gateway](/monitoring/nat-gateway-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)
* [Viewing Activity Logs](/portal-admin/activity-logs)
