remote_logging.save

Description

Save syslog remote logging settings.

Versioning Notes

Prior to version 1.1, this method was named 'system_log.save', and the only parameters available were 'enable', 'hostname', and 'port'.

Arguments

name

required

value type

default

name

required

value type

default

enable

yes

boolean

0

hostname

no

sip_endpoint

none

port

no

integer representing the auto-increment field from the database

514

verbose

no

boolean

0

system

no

boolean

0

debug_level

no

integer

0-10

facility

yes

integer, syslog facility

0-5

sip

no

boolean

0

kernel

no

boolean

0

pri

no

boolean

0

dtmf

no

boolean

0

pri_enable

no

string

standard, intense

enable_adv

no

boolean

0

Example Requests & Responses

Example One

Request

Save syslog remote logging settings.

{     'method' => 'remote_logging.save',     'parameters' => {                                 'verbose' => '1',                                 'system' => '1',                                 'debug_level' => '3',                                 'hostname' => 'mysyslogserver.example.tld',                                 'facility' => '2',                                 'sip' => '1',                                 'kernel' => '1',                                 'pri' => '1',                                 'enable' => '1',                                 'dtmf' => '1',                                 'port' => '514',                                 'pri_level' => 'standard',                                 'enable_adv' => '1',         }

Response

{           'result' => 'success'  }

Or

{           'result' => 'error',           'error' => 'An Error String',           'error_key' => 'AN_ERROR_LANGUAGE_KEY',  }

Return to Documentation Home I Return to Sangoma Support