Skip to content

Instantly share code, notes, and snippets.

@EtienneDeneuve
Created February 2, 2017 18:16
Show Gist options
  • Save EtienneDeneuve/cd6b86d6f175663f02e21cbc7d60ce59 to your computer and use it in GitHub Desktop.
Save EtienneDeneuve/cd6b86d6f175663f02e21cbc7d60ce59 to your computer and use it in GitHub Desktop.
Error #366
bitnami@Blog:/var/opt/microsoft/omsagent/log$ tail omsagent.log
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.2.0/gems/fluentd-0.12.24/lib/fluent/plugin/buf_file.rb:39:in `<<'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.2.0/gems/fluentd-0.12.24/lib/fluent/buffer.rb:200:in `block in emit'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.2.0/gems/fluentd-0.12.24/lib/fluent/buffer.rb:193:in `emit'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.2.0/gems/fluentd-0.12.24/lib/fluent/output.rb:268:in `emit'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.2.0/gems/fluentd-0.12.24/lib/fluent/event_router.rb:90:in `emit_stream'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.2.0/gems/fluentd-0.12.24/lib/fluent/event_router.rb:81:in `emit'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/plugin/in_oms_omi.rb:51:in `enumerate'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/plugin/in_oms_omi.rb:62:in `run_periodic'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.2.0/gems/fluentd-0.12.24/lbitnami@Blog:/var/opt/microsoft/omsagent/log$ tail -n 200 omsagent.log
format tsv
keys xml
run_interval 3h
</source>
<source>
type exec
tag oms.patch_management_immediate_run
command /opt/microsoft/omsconfig/Scripts/PerformInventory.py --InMOF /etc/opt/microsoft/omsagent/conf/omsagent.d/patch_management_inventory.mof --OutXML /etc/opt/omi/conf/omsconfig/configuration/CompletePackageInventory.xml > /dev/null && cat /etc/opt/omi/conf/omsconfig/configuration/CompletePackageInventory.xml
format tsv
keys xml
</source>
<filter oms.patch_management>
type filter_patch_management
log_level warn
</filter>
<filter oms.patch_management_immediate_run>
type filter_patch_management
log_level warn
</filter>
<source>
@type tail
tag oms.update_progress.apt
path /var/log/apt/history.log
pos_file /var/opt/microsoft/omsagent/state/history.log.pos
keep_time_key true
format multiline
format_firstline /Start-Date:/
format1 /Start-Date: (?<start-date>.*)\n/
format2 /Commandline: (?<apt-logs>.*\n)/
read_from_head true
log_level info
</source>
<filter oms.update_progress.apt>
@type grep
regexp1 apt-logs Requested
exclude1 apt-logs Purge|Remove
</filter>
<filter oms.update_progress.apt>
@type filter_linux_update_run_progress
current_update_run_file /var/opt/microsoft/omsagent/state/schedule_run.id
log_level info
</filter>
<source>
@type sudo_tail
tag oms.update_progress.yum
path /var/log/yum.log
format /(?<update-action-date>.*\d{2}:\d{2}:\d{2}) (?<update-action>.*):(?<package-name>.*)/
run_interval 5m
pos_file /var/opt/microsoft/omsagent/state/yum.log.pos
keep_time_key true
read_from_head true
log_level info
</source>
<filter oms.update_progress.yum>
@type filter_linux_update_run_progress
current_update_run_file /var/opt/microsoft/omsagent/state/schedule_run.id
log_level info
</filter>
<source>
type exec
tag heartbeat.output
command /opt/microsoft/omsagent/bin/omsadmin.sh -b > /dev/null
format tsv
keys severity,message
run_interval 20m
</source>
<source>
type oms_omi
object_name Logical Disk
instance_regex .*
counter_name_regex (% Used Inodes|Free Megabytes|% Used Space|Disk Reads/sec|Disk Transfers/sec|Disk Writes/sec)
interval 5m
</source>
<source>
type oms_omi
object_name Processor
instance_regex .*
counter_name_regex (% Privileged Time|% Processor Time)
interval 30s
</source>
<source>
type oms_omi
object_name Memory
instance_regex .*
counter_name_regex (% Used Memory|% Used Swap Space|Available MBytes Memory)
interval 30s
</source>
<source>
type syslog
port 25224
bind 127.0.0.1
protocol_type udp
tag oms.syslog
with_priority true
</source>
<filter oms.syslog.**>
type filter_syslog
</filter>
<match oms.blob.**>
type out_oms_blob
log_level info
num_threads 5
buffer_chunk_limit 10m
buffer_type file
buffer_path /var/opt/microsoft/omsagent/state/out_oms_blob*.buffer
buffer_queue_limit 10
buffer_queue_full_action drop_oldest_chunk
flush_interval 20s
retry_limit 10
retry_wait 30s
max_retry_wait 9m
</match>
<match oms.** docker.**>
type out_oms
log_level info
num_threads 5
buffer_chunk_limit 5m
buffer_type file
buffer_path /var/opt/microsoft/omsagent/state/out_oms_common*.buffer
buffer_queue_limit 10
buffer_queue_full_action drop_oldest_chunk
flush_interval 20s
retry_limit 10
retry_wait 30s
max_retry_wait 9m
<secondary>
type __ChunkErrorHandler__
</secondary>
</match>
</ROOT>
2017-02-02 02:22:13 +0000 [info]: following tail of /var/log/apt/history.log
2017-02-02 02:22:13 +0000 [info]: listening syslog socket on 127.0.0.1:25224 with udp
2017-02-02 02:27:13 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 02:27:13 +0000 [warn]: WARN /var/log/yum.log not found. Continuing without tailing it.
2017-02-02 02:32:14 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 02:37:14 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 02:42:14 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 02:47:14 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 02:52:15 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 02:57:15 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 03:02:15 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 03:07:15 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 03:12:16 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 03:17:16 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 03:22:16 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 03:27:17 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 03:32:17 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 03:37:17 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 03:42:17 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 03:47:18 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 03:52:18 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 03:57:18 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 04:02:19 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 04:10:15 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 04:15:16 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 04:20:16 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 04:25:16 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 04:30:16 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 04:35:17 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 04:40:17 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 04:45:17 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 04:50:17 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 04:55:17 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 05:00:18 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 05:05:42 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 05:10:43 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 05:15:43 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 05:20:44 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 05:25:45 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 05:30:45 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 05:35:45 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 05:40:46 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 05:45:46 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 05:50:46 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 05:55:47 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 06:00:47 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 06:05:47 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 06:10:47 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 06:15:48 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 06:20:48 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 06:25:48 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 06:30:58 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 06:35:59 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 06:41:01 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 06:46:02 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 06:51:04 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 06:56:07 +0000 [error]: ERROR /var/log/yum.log is unreadable. Cannot tail the file.
2017-02-02 06:59:58 +0000 [warn]: emit transaction failed: error_class=Errno::ENOSPC error="No space left on device @ io_write - /var/opt/microsoft/omsagent/state/out_oms_common.b54786b694343d6ef.buffer" tag="oms.omi"
2017-02-02 06:59:58 +0000 [warn]: emit transaction failed: error_class=Errno::ENOSPC error="No space left on device @ io_write - /var/opt/microsoft/omsagent/state/out_oms_common.b54786b694343d6ef.buffer" tag="oms.omi"
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.2.0/gems/fluentd-0.12.24/lib/fluent/plugin/buf_file.rb:39:in `write'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.2.0/gems/fluentd-0.12.24/lib/fluent/plugin/buf_file.rb:39:in `<<'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.2.0/gems/fluentd-0.12.24/lib/fluent/buffer.rb:200:in `block in emit'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.2.0/gems/fluentd-0.12.24/lib/fluent/buffer.rb:193:in `emit'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.2.0/gems/fluentd-0.12.24/lib/fluent/output.rb:268:in `emit'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.2.0/gems/fluentd-0.12.24/lib/fluent/event_router.rb:90:in `emit_stream'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.2.0/gems/fluentd-0.12.24/lib/fluent/event_router.rb:81:in `emit'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/plugin/in_oms_omi.rb:51:in `enumerate'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/plugin/in_oms_omi.rb:62:in `run_periodic'
2017-02-02 06:59:58 +0000 [warn]: /opt/microsoft/omsagent/ruby/lib/ruby/gems/2.2.0/gems/fluentd-0.12.24/lbitnami@Blog:/var/opt/microsoft/omsagent/log$ ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment