Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
attach enhanced metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
samjsong committed Jul 16, 2019
1 parent a031fbe commit 8dc6add
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/fluent/plugin/filter_kubernetes_sumologic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ def filter(tag, time, record)
log_fields["host"] = kubernetes["host"] unless kubernetes["host"].nil?
log_fields["master_url"] = kubernetes["master_url"] unless kubernetes["master_url"].nil?
log_fields["namespace_id"] = kubernetes["namespace_id"] unless kubernetes["namespace_id"].nil?
log_fields["service"] = kubernetes["service"] unless kubernetes["service"].nil?
log_fields["deployment"] = kubernetes["deployment"] unless kubernetes["deployment"].nil?
log_fields["daemonset"] = kubernetes["daemonset"] unless kubernetes["daemonset"].nil?
log_fields["replicaset"] = kubernetes["replicaset"] unless kubernetes["replicaset"].nil?
log_fields["statefulset"] = kubernetes["statefulset"] unless kubernetes["statefulset"].nil?
end
end

Expand Down

0 comments on commit 8dc6add

Please sign in to comment.