AT&T ECOMP Vendor Event Listener library
0.1
|
Implementation of EVEL functions relating to the Syslog. More...
Go to the source code of this file.
Functions | |
EVENT_SYSLOG * | evel_new_syslog (EVEL_SOURCE_TYPES event_source_type, const char *const syslog_msg, const char *const syslog_tag) |
Create a new Syslog event. More... | |
void | evel_syslog_type_set (EVENT_SYSLOG *syslog, const char *const type) |
Set the Event Type property of the Syslog. More... | |
void | evel_syslog_addl_field_add (EVENT_SYSLOG *syslog, char *name, char *value) |
Add an additional value name/value pair to the Syslog. More... | |
void | evel_syslog_event_source_host_set (EVENT_SYSLOG *syslog, const char *const host) |
Set the Event Source Host property of the Syslog. More... | |
void | evel_syslog_facility_set (EVENT_SYSLOG *syslog, EVEL_SYSLOG_FACILITIES facility) |
Set the Facility property of the Syslog. More... | |
void | evel_syslog_proc_set (EVENT_SYSLOG *syslog, const char *const proc) |
Set the Process property of the Syslog. More... | |
void | evel_syslog_proc_id_set (EVENT_SYSLOG *syslog, int proc_id) |
Set the Process ID property of the Syslog. More... | |
void | evel_syslog_version_set (EVENT_SYSLOG *syslog, int version) |
Set the Version property of the Syslog. More... | |
void | evel_syslog_s_data_set (EVENT_SYSLOG *syslog, const char *const s_data) |
Set the Structured Data property of the Syslog. More... | |
void | evel_json_encode_syslog (EVEL_JSON_BUFFER *jbuf, EVENT_SYSLOG *event) |
Encode the Syslog in JSON according to AT&T's schema for the event type. More... | |
void | evel_free_syslog (EVENT_SYSLOG *event) |
Free a Syslog. More... | |
Implementation of EVEL functions relating to the Syslog.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY AT&T INTELLECTUAL PROPERTY ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AT&T INTELLECTUAL PROPERTY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file evel_syslog.c.
void evel_free_syslog | ( | EVENT_SYSLOG * | event | ) |
Free a Syslog.
Free off the Syslog supplied. Will free all the contained allocated memory.
Definition at line 464 of file evel_syslog.c.
void evel_json_encode_syslog | ( | EVEL_JSON_BUFFER * | jbuf, |
EVENT_SYSLOG * | event | ||
) |
Encode the Syslog in JSON according to AT&T's schema for the event type.
jbuf | Pointer to the EVEL_JSON_BUFFER to encode into. |
event | Pointer to the EVENT_HEADER to encode. |
Definition at line 354 of file evel_syslog.c.
EVENT_SYSLOG* evel_new_syslog | ( | EVEL_SOURCE_TYPES | event_source_type, |
const char *const | syslog_msg, | ||
const char *const | syslog_tag | ||
) |
Create a new Syslog event.
Create a new syslog event.
event_source_type | The type of Syslog event source. |
syslog_msg | The Syslog event message. |
syslog_tag | The messgaeId identifying the type of message. |
NULL | Failed to create the event. |
Definition at line 56 of file evel_syslog.c.
void evel_syslog_addl_field_add | ( | EVENT_SYSLOG * | syslog, |
char * | name, | ||
char * | value | ||
) |
Add an additional value name/value pair to the Syslog.
Add an additional field name/value pair to the Syslog.
The name and value are null delimited ASCII strings. The library takes a copy so the caller does not have to preserve values after the function returns.
syslog | Pointer to the syslog. |
name | ASCIIZ string with the attribute's name. The caller does not need to preserve the value once the function returns. |
value | ASCIIZ string with the attribute's value. The caller does not need to preserve the value once the function returns. |
Definition at line 148 of file evel_syslog.c.
void evel_syslog_event_source_host_set | ( | EVENT_SYSLOG * | syslog, |
const char *const | host | ||
) |
Set the Event Source Host property of the Syslog.
syslog | Pointer to the Syslog. |
host | The Event Source Host to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 189 of file evel_syslog.c.
void evel_syslog_facility_set | ( | EVENT_SYSLOG * | syslog, |
EVEL_SYSLOG_FACILITIES | facility | ||
) |
Set the Facility property of the Syslog.
Set the Syslog Facility property of the Syslog.
syslog | Pointer to the Syslog. |
facility | The Syslog Facility to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 219 of file evel_syslog.c.
void evel_syslog_proc_id_set | ( | EVENT_SYSLOG * | syslog, |
int | proc_id | ||
) |
Set the Process ID property of the Syslog.
syslog | Pointer to the Syslog. |
proc_id | The Process ID to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 274 of file evel_syslog.c.
void evel_syslog_proc_set | ( | EVENT_SYSLOG * | syslog, |
const char *const | proc | ||
) |
Set the Process property of the Syslog.
syslog | Pointer to the Syslog. |
proc | The Process to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 248 of file evel_syslog.c.
void evel_syslog_s_data_set | ( | EVENT_SYSLOG * | syslog, |
const char *const | s_data | ||
) |
Set the Structured Data property of the Syslog.
syslog | Pointer to the Syslog. |
s_data | The Structured Data to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 331 of file evel_syslog.c.
void evel_syslog_type_set | ( | EVENT_SYSLOG * | syslog, |
const char *const | type | ||
) |
Set the Event Type property of the Syslog.
syslog | Pointer to the syslog. |
type | The Event Type to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 118 of file evel_syslog.c.
void evel_syslog_version_set | ( | EVENT_SYSLOG * | syslog, |
int | version | ||
) |
Set the Version property of the Syslog.
syslog | Pointer to the Syslog. |
version | The Version to be set. ASCIIZ string. The caller does not need to preserve the value once the function returns. |
Definition at line 302 of file evel_syslog.c.