
New Relic users may face hidden costs caused by the introduction of ingress inject. This is especially true for the browser data, which sends New Relic various click data, Ajax requests, and so on.
There are different ways to fix this, such as uninstalling New Relic or filtering based on Ajax requests.
If you do not have the Browser PRO function, you may be limited in what you can filter directly from the interface.
Fortunately, the NerdGraph API Explorer can help. The learning curve for this can be steep if you are new to New Relic, and it may take a lot of time to understand which data is connected to what.
However, there is a quick hack to mitigate all browser data from the ingest, which you can easily adjust according to your preferences.
NerdGraph Api explorer is available via the “Apps” menu in New Relic:

Dropping the data
Here is the mutation responsible that you can use or tweak to your own liking:
mutation {
nrqlDropRulesCreate(
accountId: yourIDhere
rules: [
{
action: DROP_DATA
nrql: "SELECT * FROM PageAction"
description: "Drops all data for PageAction."
},
{
action: DROP_DATA
nrql: "SELECT * FROM JavaScriptError"
description: "Drops all data for JavaScriptError."
},
{
action: DROP_DATA
nrql: "SELECT * FROM PageView"
description: "Drops all data for PageView."
},
{
action: DROP_DATA
nrql: "SELECT * FROM AjaxRequest"
description: "Drops all data for AjaxRequest."
},
{
action: DROP_DATA
nrql: "SELECT * FROM PageViewTiming"
description: "Drops all data for PageViewTiming."
},
{
action: DROP_DATA
nrql: "SELECT * FROM BrowserInteraction"
description: "Drops all data for BrowserInteraction."
},
{
action: DROP_DATA
nrql: "SELECT * FROM BrowserTiming"
description: "Drops all data for BrowserTiming."
},
{
action: DROP_DATA
nrql: "SELECT * FROM Ajax"
description: "Drops all data for Ajax."
}
]
) {
successes {
id
}
failures {
submitted {
nrql
}
error {
reason
description
}
}
}
}Once you click on Play button you will get success result on the right side.
And that is it rules are applied — forever!
Be sure that rules are what ou want otherwise it will filter out data you dont want filtered.
Checking what rules i have
To check on all rules you have set use following code:
{
actor {
account(id: yourIdhere) {
nrqlDropRules {
list {
rules {
id
nrql
accountId
action
createdBy
createdAt
description
}
error {
reason
description
}
}
}
}
}
}On right hand side you will get all the results:

Facing DDoS Attacks or Need Infrastructure Help?
Don't wait for the next attack or infrastructure issue. Get expert help with DDoS mitigation, AWS optimization, and security hardening.
Get Expert Help Now