Q1: Is it possible to redefine a log file name in dtwsagent.ini? Ie java agent supports it. Could not find such option for dtwsagent here:
Q2: How to use -instance parameter of master dtwsagent? Ie
$ dynatrace/agent/lib64/dtwsagent -instance test
Usage: dtwsagent [options]
-? Print this help message
-instance <name> Instance name
Q3: In our environment a single Apache HTTPD process can be configured to service multiple applications (using different vhosts). How can we connect different apps if only the master agent accepts only single Name option in its .ini file?
Apache HTTPD version:
Server version: Apache/2.4.20 (Unix)
Server built: Jun 8 2016 12:18:21
Server's Module Magic Number: 20120211:57
Server loaded: APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Server MPM: prefork
forked: yes (variable process count)
Server compiled with....
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
Solved! Go to Solution.
Q1 - if you look into the standard dtwsagent.ini file that is created when you install the agent you will find this entry that should do what you are looking for (just uncomment it and adjust it):
Q2 - this is required if you run multiple Apache instances on the same server and want them to report to different AppMon servers. The documentation covers this quite extensively: https://community.dynatrace.com/community/display/...
Q3 - each Apache instance is served by the same agent thus sending it's data to the same AppMon server and system profile. There is no configuration option to split this by vhost.
Q1: LogfilePath option says agent WHERE log files can be saved. Whereas I was asking for the option that says agent HOW to call a log file.
By default the log file contains a PID in its name which is very inconvenient when troubleshooting. java agent supports option logfile=<filename>
grep -v -e ^# -e ^$ dynatrace/agent/conf/dtwsagent.ini