Skip to content

Instantly share code, notes, and snippets.

@neilhwatson
Last active August 29, 2015 14:04
Show Gist options
  • Save neilhwatson/dae84e209aed4abdfafa to your computer and use it in GitHub Desktop.
Save neilhwatson/dae84e209aed4abdfafa to your computer and use it in GitHub Desktop.
EFL and Delta reporting logs
A script on each client makes a union of the two logs into something ready for the Delta Reporting database.
2014-07-30T15:54:17-0400 ;; linux_x86_64_3_12_1_amd64__1_SMP_Debian_3_12_9_1__2014_02_01_ ;; empty ;; empty ;; empty ;; empty
2014-07-30T15:54:17-0400 ;; net_iface_lo ;; empty ;; empty ;; empty ;; empty
2014-07-30T15:54:17-0400 ;; _usr_share_games_fortunes_taow_handle_efl_copy_files_single_perms_kept ;; efl_copy_files_single_perms ;; empty ;; kept ;; empty
2014-07-30T15:54:17-0400 ;; _stdlib_has_path_sed ;; empty ;; empty ;; empty ;; empty
2014-07-30T15:54:17-0400 ;; _etc_default_slapd_handle_efl_service_files_config_kept ;; efl_service_files_config ;; empty ;; kept ;; empty
2014-07-30T15:54:17-0400 ;; _stdlib_path_exists_crontab ;; empty ;; empty ;; empty ;; empty
2014-07-30T15:54:17-0400 ;; _stdlib_path_exists_ifconfig ;; empty ;; empty ;; empty ;; empty
2014-07-30T15:54:17-0400 ;; mac_00_1e_67_8b_f7_13 ;; empty ;; empty ;; empty ;; empty
2014-07-30T15:54:17-0400 ;; _stdlib_has_path_cksum ;; empty ;; empty ;; empty ;; empty
2014-07-30T15:54:17-0400 ;; cfengine ;; empty ;; empty ;; empty ;; empty
EFL makes classes for the outcome, kept, notkept, or repaired, of each of its promises.
BEGIN 2014-07-30T15:58:50-0400
cpu2_low
_var_cache_cfengine__etc_ssh_sshd_config_handle_efl_service_svc_cache_kept
_etc_rsyslog_conf_handle_efl_service_files_config_kept
ipv4_172_16
_usr_sbin_rsyslogd_handle_efl_service_processes_proc_kept
_stdlib_has_path_service
_var_cache_cfengine__etc_apt_preferences_d_cfengine_handle_efl_edit_template_cache_template_kept
GMT_Hr19
compiled_on_linux_gnu
The dubious results of CFEngine's log_* actions. Note the glorious repeats and contradictions. Can't tell which are promises and which are not? Neither can I!
BEGIN 2014-07-30T16:35:23-0400
efl_command_commands ;; /bin/echo =lsb_release=$(lsb_release -cs) ;; environment
efl_delete_files_files_isdir ;; /var/tmp ;; Neil Watson
efl_delete_files_files_isdir ;; /etc/apt/sources.list.d ;; Neil Watson
efl_delete_files_files_isdir ;; /tmp ;; Neil Watson
efl_delete_files_files_isdir ;; /var/cfengine/outputs ;; Neil Watson
efl_delete_files_files_isdir ;; /var/cfengine/outputs ;; Neil Watson
efl_copy_files_remote_single ;; /usr/share/games/fortunes/taow ;; Neil Watson
efl_copy_files_remote_single ;; /usr/share/games/fortunes/taow ;; Neil Watson
efl_copy_files_remote_single ;; /usr/share/games/fortunes/taow ;; Neil Watson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment