No Path
Using this logging configuration with relative log path in the agent.cfg:
logger_config
{
output = file agent.log
}
the location of the agent.cfg is <location>.
Expect: all the log files are in <location>
Case 1:
run the command at <location>
agent run
Found agent.log and the archive files agent_YYYY-MM-DD_HH-MM-SS_xx.log in <location> - GOOD
Case 2:
install it as service by running the command at <location>
agent install
Found agent.log and its archive file in the location of agent.exe and also at <location>
the archive file at <location> is likely created by the agent install process.
=====================================================
Absolute Path
Using this logging configuration with relative log path in the agent.cfg:
logger_config
{
output = file c:\logs\agent.log
}
the location of the agent.cfg is <location>.
Expect: all the log files are in c:\logs
Case 1:
run the command at <location>
agent run
Found agent.log in c:\logs but the archive files agent_YYYY-MM-DD_HH-MM-SS_xx.log in <location>
case 2:
install it as service by running the command at <location>
agent install
Found agent.log in c:\logs but the archive files agent_YYYY-MM-DD_HH-MM-SS_xx.log in <location>
the archive file at <location> is likely created by the agent install process. No new archive can be found.
=====================================================
Relative Path
Using this logging configuration with relative log path in the agent.cfg:
logger_config
{
output = file .\logs\agent.log
}
the location of the agent.cfg is .
Expect: all the log files are in \logs
Case 1:
run the command at <location>
agent run
Found agent.log in <location>\logs but the archive files agent_YYYY-MM-DD_HH-MM-SS_xx.log in <location>
case 2:
install it as service by running the command at <location>
agent install
Found empty <location>\logs directory, an archive file agent_YYYY-MM-DD_HH-MM-SS_xx.log in <location>, agent.log at <location of agent.exe>\logs, archive file agent_YYYY-MM-DD_HH-MM-SS_xx.log at <location of agent.exe>
No Path
Using this logging configuration with relative log path in the agent.cfg:
the location of the agent.cfg is
<location>.Expect: all the log files are in
<location>Case 1:
run the command at
<location>agent runFound agent.log and the archive files agent_YYYY-MM-DD_HH-MM-SS_xx.log in
<location>- GOODCase 2:
install it as service by running the command at
<location>agent installFound agent.log and its archive file in the location of agent.exe and also at
<location>the archive file at
<location>is likely created by theagent installprocess.=====================================================
Absolute Path
Using this logging configuration with relative log path in the agent.cfg:
the location of the agent.cfg is
<location>.Expect: all the log files are in
c:\logsCase 1:
run the command at
<location>agent runFound agent.log in
c:\logsbut the archive files agent_YYYY-MM-DD_HH-MM-SS_xx.log in<location>case 2:
install it as service by running the command at
<location>agent installFound agent.log in
c:\logsbut the archive files agent_YYYY-MM-DD_HH-MM-SS_xx.log in<location>the archive file at
<location>is likely created by theagent installprocess. No new archive can be found.=====================================================
Relative Path
Using this logging configuration with relative log path in the agent.cfg:
the location of the agent.cfg is .
Expect: all the log files are in \logs
Case 1:
run the command at
<location>agent runFound agent.log in
<location>\logsbut the archive files agent_YYYY-MM-DD_HH-MM-SS_xx.log in<location>case 2:
install it as service by running the command at
<location>agent installFound empty
<location>\logsdirectory, an archive file agent_YYYY-MM-DD_HH-MM-SS_xx.log in<location>, agent.log at<location of agent.exe>\logs, archive file agent_YYYY-MM-DD_HH-MM-SS_xx.log at<location of agent.exe>