cancel
Showing results for 
Search instead for 
Did you mean: 

Diagnostic Agents - Limit size & number of log files

Former Member
0 Kudos

Hi

Because disk space is rare in some of our systems I would like to limit the number and size of Diagnostic Agents related log files in

/usr/sap/DAA/SMDA97/work and /usr/sap/DAA/SMDA97/SMDAgent/log

Disable all logging is also an option.

How can I do this?

Regards

Michael

Accepted Solutions (1)

Accepted Solutions (1)

stephan_prat
Active Participant
0 Kudos

Hi,

No idea for the work folder. But for SMDAgent/log, that’s
saplogging, configured via file SmdAgent/configuration/log-configuration.xml.

You can define the log file rolling policy with altering the
count and limit values manually.

    <log-destination
name="SMDAgentAppLog" type="FileLog" count="10"
effective-severity="All" limit="1000000"
pattern="./log/SMDAgentApplication.log">

      <formatter-ref
name="trc"/>

    </log-destination>

Regards,

Stephan

Former Member
0 Kudos

Thats exactly what I was looking for. Thanks.

Anybody any idea about the work folder?

Former Member
0 Kudos

Will the changes in log_configuration.xml be overwritten if I patch LM-Service/Update DAA or under any other circumstance, like changing something via SMDAgentAdministration?

stephan_prat
Active Participant
0 Kudos

No, only in case of reinstallation.

Answers (1)

Answers (1)

divyanshu_srivastava3
Active Contributor
0 Kudos

You can reduce the logging level and schedule a house keeping cron job that zips and move or delete old log files.

Regards,

Former Member
0 Kudos

reduce the logging level

How? Thats one of the questions.

I think the cron solution is a workaround for something SAP should have thought of.

E.g.: I know some icm Parameter (icm/HTTP/logging_xx)  where you can add MAXSIZE, FILEWRAP and SWITCHF values to handle log file growth. I thought something similar exists in DAA-World...

Any other ideas?

divyanshu_srivastava3
Active Contributor
0 Kudos

Ok.. let's see if this helps.

Goto Agent admin, then to agent log viewer, select the agent and press on log configuration button.

Now select the level as info or NONE.

Regards,

Former Member
0 Kudos

Thanks. I have set all logs to "Error" for one agent and will monitor the size of the log files.

However, I assume this only controls the logs in SMDAgent/log. How about logs in the work folder, especially jvm_smdagent.ou*. Any idea how to handle these?

Regards

Michael

divyanshu_srivastava3
Active Contributor
0 Kudos

Are these logs "jvm_smdagent.out*" consuming lots of space ?

Regards,

Former Member
0 Kudos

nowadays ~60MB is not what I call "lots of space" - so the answer is no.

But these 60MB  (around 20MB each) are like 98% of the space occupied in the same directory. As the volume has only 600MB free space these 60MB are "a lot" and DAA-Logs have no high importance.

divyanshu_srivastava3
Active Contributor
0 Kudos

I would say zip, keep it for a month and then delete these old logs.

Regards,