Dynamic Languages (Node.JS, Python, PHP, C/C++, Webserver Agent)

cancel
Showing results for 
Search instead for 
Did you mean: 

Node JS Agent :: Logs configuration

Node JS Agent :: Logs configuration

i have my Node JS Agent configured and it shows up in AppD Monitoring portal .
I am using [Node 7.10.1 - Alpine Linux with glibc] Docker environment on AWS clould
The problem is, i cannot see the logs in host environment under /tmp/ as configured below /tmp/appd
using 4.3.4 npm module 
 
Is there any issue below logging configuration?
In the docs(link below content at end) , it says debug mode would show logs in stdout (does that mean logging file won't get created in debug mode)
 
require('appdynamics').profile({
controllerHostName: '.....,
controllerPort: 443,
controllerSslEnabled: true, // Set to true if controllerPort is SSL
accountName: ....,
accountAccessKey: ....,
applicationName: ....
tierName: ....
nodeName: domain name ,
debug: true,
logging: {
'logfiles': [{
'root_directory': '/tmp/appd',
'filename': 'echo_%N.log',
'level': 'DEBUG',
'max_size': 10000,
'max_files': 10
}]
}
});
Tags (2)
Node JS Agent :: Logs configuration
1 REPLY 1
Highlighted
Employee

Re: Node JS Agent :: Logs configuration

Hi Shiva, 

 

When you start the Node.JS application in debug mode, the log location is logged out in the console. You can get it from there.

 

It should be /tmp/appd for any linux machines.

 

 

Thanks

Ayush