Zabbix Documentation 4.0

3.04.04.4 (current)| In development:5.0 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools


manual:appendix:install:real_time_export

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
manual:appendix:install:real_time_export [2018/03/12 15:23]
martins-v created, section on real-time export of events, values, trends
manual:appendix:install:real_time_export [2018/10/09 06:14] (current)
martins-v some rewording
Line 3: Line 3:
 === Overview === === Overview ===
  
-It is possible to configure real-time ​export ​of trigger events, item values and trends in a newline-delimited JSON format.+It is possible to configure real-time ​exporting ​of trigger events, item values and trends in a newline-delimited JSON format.
  
 Exporting is done into files, where each line of the export file is a JSON object. Value mappings are not applied. Exporting is done into files, where each line of the export file is a JSON object. Value mappings are not applied.
  
-The following information is exported:+In case data cannot be written to the export file or the export file cannot be renamed or new one cannot be created after renaming it, Zabbix will retry with 10 second interval until success.
  
-  * for events - host groupshost name, trigger name, timestamp, event status +For precise details on what information is exportedsee the [[:​manual/​appendix/​protocols/​real_time_export|export protocol]] page.
-  * for values - host groups, host name, item ID, item name, item value, timestamp, application +
-  * for trends - host groups, host name, item ID, item name, item value (avg, min, max, count), timestamp, application+
  
 +Note that host/item can have no metadata (host groups, host name, item name) if the host/item was removed after the data was received, but before server exported data.
 === Configuration === === Configuration ===
  
-Real-time export of is configured by specifying ​an ExportDir parameter in server [[:​manual/​appendix/​config/​zabbix_server|configuration]]. ​+Real-time export of trigger events, item values and trends ​is configured by specifying ​a directory for the export files - see the ''​ExportDir'' ​parameter in server [[:​manual/​appendix/​config/​zabbix_server|configuration]]. ​
  
-Another parameter - ExportFileSize may be used to set the maximum allowed size of an individual export file.+Another parameter - ''​ExportFileSize'' ​may be used to set the maximum allowed size of an individual export file. When a process needs to write to a file it checks the size of the file first. If it exceeds the configured size limit, the file is renamed by appending .old to its name and a new file with the original name is created. 
 + 
 +<note important>​A file will be created per each process that will write data (i.e. approximately 4-30 files). As the default size per export file is 1G, keeping large export files may drain the disk space fast.</​note>​