• EnglishEspañol日本語한국어Português
  • Log inStart now

Configure mobile network request settings

The mobile network request settings page can help you customize how network metrics and events are reported. You can block or allow hostnames, ignore HTTP status codes from certain hosts, and create aliases to rename hosts or group subdomains.

To configure these settings, go to one.newrelic.com > All capabilities > Mobile > (select a mobile app) > Settings > Network settings.

Block/allow hostnames

You can allow or block certain hostnames from being monitored. For example, if you want to only allow subdomains of ecommerce.com:

  1. On the Network settings page, select the Show only hostnames tab.
  2. Click Add a hostname.
  3. Enter the hostname *.ecommerce.com and click Add to list.

Wait up until 2 hours for the rule to be applied.

Ignore HTTP status codes

You can ignore specific HTTP error status code on a hostname. For example, if you want to ignore 401, 403, and 404 errors from all ecommerce.com subdomains:

  1. On the Network settings page, select the Status codes tab.
  2. Click Create a status code rule.
  3. Enter the host *.ecommerce.com.
  4. Enter status codes 401, 403, and 404 and click Add to list.

Wait up until 2 hours for the rule to be applied.

Create aliases for hostnames

You can create aliases to rename or group hostnames that make the most sense to you. For example, if you want to create an alias that groups all subdomains of ecommerce.com:

  1. On the Network settings page, select the Aliases and groups tab.
  2. Click Create an alias.
  3. Enter *.ecommerce.com to group all subdomains of ecommerce.com.
  4. Enter the alias ecommerce.com and click Save alias.

Wait up until 2 hours for the rule to be applied.

Recommendations for using wildcards

When using * (a wildcard), the regex rules are slightly different. The wildcard is used for a whole segment, or the values between two dots in a hostname (i.e., the whole segment for hostname.1219.com is 1219).

Here are some examples of successfully using wildcards to create an alias:

Hosts

Alias

Example domain

Result

192.168.*.100

LOCAL

192.168.10.100

LOCAL

tbr.*.something.com

tbr.*.something.com

tbr.gh99898.something.com

tbr.*.something.com

api1.mydomain.co.uk

API

api1.mydomain.co.uk

API

api2.mydomain.co.uk

API

api2.mydomain.co.uk

API

Now that you've seen some example of how this works, let's look at some examples of what won't work.

Hosts

Alias

Example domain

Result

tbr.gh*.something.com

tbr.gh*.something.com

tbr.gh99898.something.com

tbr.gh99898.something.com

cs-*.company.jp

cs-*.company.jp

cs-23.company.jp

cs-23.company.jp

cs-*.company.jp

customer_survey

cs-*.company.jp

customer_survey

Remember, a wildcard will only affect a whole segment. Since the * can only be used for a full segment, the * here will be taken literally and not as a wildcard.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.