• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home
  • Public Forums
  • Application Monitoring & UEM
  • AppMon & UEM Open Q&A
avatar image
Question by Michael S. · Sep 09, 2015 at 06:31 AM · configuration agent

Configuration of agent logfile: How to use the parameter

Hello, i'm working on preparing the implementation of dt java agent in production. Default-Logfilename with the pid looks not so nice for me. I would like to have a simple logfilename dt_(agentname).log and control this in size and number of files. In documentation i found the note, that rotation with adding suffix is done and also parameter logfilesize, but there is no documentation how to use the parameter.

Thanks for your help!

Michael

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

3 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Guenter H. · Sep 09, 2015 at 07:53 AM

Hi Michael,

great question -- that I asked engineering yesterday (Thankfully the gurus are just some meters away and I can bug them any time!), because I´m just reworking the Agent Configuration page. (Will be live some time today or tomorrow.)

With the Java Agent (and many others) it´s an option in the connection string.

Generically

-agentpath:<agentlib>=<parameter>[,<option>]

Example for a 32 bit instrumentation on Linux:

-agentpath:$DT_HOME/agent/lib/libdtagent.so=name=MyJavaApplication,server=mydtserver,logfilesize=50000000

Value is in bytes. Default is 10000000. (10MB) No unit, no spaces.

BTW: I tried %DT_HOME% in a Windows Tomcat instrumentation yesterday and couldn´t get it to work with all my best gurus around.

It did work when I put the environment variable in setenv.bat.

Hope this helps

G.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Joe H. · Sep 09, 2015 at 04:11 PM

You might also find the following switches useful.

logfile=<filename> (this allows you to specify the filename)

logpath=<path> (specifies the path to where the log file will be written)

Just add these to the end of the -agentpath string after the logfilesize parameter. Order doesn't matter, all log switches are optional.

Comment
Florian O.

People who like this

1 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Guenter H. · Sep 23, 2015 at 07:18 AM

Hi,

as you know from programmers, "tomorrow" is an elastic term, recurring forever and if one gives you a month/day date when he´ll be finished better ask for the year. ;-)

Saying that: I hoped to finish the Agent Configuration page tweaks last Thursday, but when I started to look around I found that the Java Agent Configuration page needed a rewrite / compaction / weeding even more badly, so I went ahead and did this dependent page first.

Also, I cross checked all the options with actual production code and worked with engineering to be sure I don´t miss anything and there is nothing outdated.

I just replaced in 6.1 and 6.2 what I had collected on the private space for the next version.

Sadly I currently don´t have the time to de-duplicate everything on the respective Agent pages for every techtype.

Hope that makes things clearer. Feedback is appreciated!

G.

Comment
Florian O.

People who like this

1 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

IIB - IBM Integration Bus instrumentation: custom sensors/External service API ignored

update web agent version

Disconnected transaction flow

Instrumented Java 8 Lambdas cannot be deserialized

Questions about Collector cache

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A