Previous page

Next page

Locate page in Contents

Print this page

set_log

Summary:

Sets the logging period for the specified performance class.

Request specification:

Name

Min/Max

Type

Description

set_log

1..1

logType

The class and the logging period information.

Returns:

OK/Error

Description:

System performance data is automatically collected by periodic collector operators at predefined time intervals. The default interval is 60 minutes. The set_log call allows you to modify the interval for each performance class individually. When you execute the call on the node that hosts Virtuozzo Containers, the change affects the host itself and all of the Containers hosted by it. See perf_mon:start_monitor for more info on performance classes. To get the current logging period settings, use the get_log_info call.

Example:

Setting the logging period for the counters_cpu class to 1000 seconds.

Input

<packet version="4.0.0">

<target>res_log</target>

<data>

<res_log>

<set_log>

<class>

<name>counters_cpu</name>

</class>

<period>1000</period>

</set_log>

</res_log>

</data>

</packet>

Output

<?xml version="1.0" encoding="UTF-8"?><ns1:packet xmlns:ns2="http://www.swsoft.com/webservices/vzl/4.0.0/res_log" xmlns:ns1="http://www.swsoft.com/webservices/vzl/4.0.0/protocol" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="7c45f6c95at72aeraa4" time="2007-03-11T08:54:59+0000" priority="0" version="4.0.0">

<ns1:origin>res_log</ns1:origin>

<ns1:target>vzclient7</ns1:target>

<ns1:dst>

<ns1:director>gend</ns1:director>

</ns1:dst>

<ns1:data>

<ns2:res_log>

<ns1:ok/>

</ns2:res_log>

</ns1:data>

<ns1:src>

<ns1:director>gend</ns1:director>

</ns1:src>

</ns1:packet>

Please send us your feedback on this help page