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, that is, 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 is 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:
<Agent name="Java Profiling Agent" type="Profiler" logFile="/tmp/profile.trcxml"> </Agent>
Related tasks
Locating the configuration files
Configuring logging
Administering the Agent Controller