In some scenarios, it may be desirable to redirect the output generated by agents to a file rather than to a client. This may be useful in a couple of different scenarios. First, in order to run the agent headless (i.e. without a client), redirecting output to a file eliminates the need for a client. Second, this would be helpful in scenarios where large amounts of data are being output by the agent beyond what would be reasonable to buffer using the data channel. Streaming this data to a file is faster than streaming it directly to a client for processing.
To redirect agent output to a file:
Example
To redirect all the output from the Java Profiling Agent to the profile.trcxml file in the tmp directory, specify the logFile attribute with value /tmp/profile.trcxml
<Agent name="Java Profiling Agent" type="Profiler" logFile="/tmp/profile.trcxml"> </Agent>
Related tasks
Locating the configuration files
Configuring logging
Administering the Agent Controller