Splunk AppDynamics

What environment variables get logged by the NodeJs agent?

CommunityUser
Splunk Employee
Splunk Employee

Two part question.

1. What environment variables get logged by the AppDynamics NodeJs agent by default? We can see that the Java agent logs all JVM variables, but we are not able to see any environment variables being logged by the NodeJs agent.

2. If environment variables were getting logged and we wanted to mask them, what is the correct matchPattern to use?

We can see configuration outlined here:
https://docs.appdynamics.com/display/PRO45/Node.js+Settings+Reference

// Add an environment variable filter 
dataFilters: [{
   "appliesTo": "env-vars",
   "matchPattern": "password|key"
}],

But it's not clear from that example what kind of "match" this is. Is it an exact match? Is it a "contains" type match? Can you use wildcards such as "*"?

Labels (1)
Tags (1)
0 Karma

Arun_Gangadhara
Explorer

Hi Jim,

Appreciate your patience, So in early days of nodejs agent, We used to wire all the Env variables to the controller. But for now, data filtering is by default adopted for Env variables in Nodejs agent (we are no more propagating all the Env variables )

Also, Thanks to your valuable feedback. We have updated the doc. The matchpattern/parampattern is a standard regex.

Please let us know if you have any concerns.

Regards!

Arun G

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi @Anonymous 

Thank you for posting your question on the AppDynamics community.

Our documentation team has appreciated the feedback and they went ahead and updated the documentation on environment variables and match patterns.

According to the documentation, the matchpattern/parampattern is a standard regex.

Hope the updated doc helps clarify your question.

Let us know if you have further queries.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...