Skip to content
Permalink
Browse files

Merge pull request #131 from ewolinetz/issue130

updating fluentd filter to not overwrite message field if it already exists
  • Loading branch information...
ewolinetz committed May 13, 2016
2 parents 0b7cd91 + 412f85f commit e54cba43c75910430691e75fc2b55a6758c15c6c
@@ -3,8 +3,8 @@
enable_ruby
<record>
hostname ${(kubernetes_host rescue nil) || File.open('/etc/docker-hostname') { |f| f.readline }.rstrip}
message ${log}
version 1.1.4
message ${(message rescue nil) || log}
version 1.2.0
</record>
remove_keys log,stream
</filter>
@@ -14,7 +14,7 @@
time ${ Time.at(time) > Time.now ? (temp_time = Time.parse(Time.at(time).to_s.gsub(Time.at(time).year.to_s, (tag_parts[3].nil? ? Time.at(time).year.to_s : tag_parts[3][9,4]) )).to_datetime.to_s; Time.parse(temp_time) > Time.now ? Time.parse(temp_time.gsub(Time.parse(temp_time).year.to_s, (Time.parse(temp_time).year - 1).to_s )).to_datetime.to_s : Time.parse(temp_time).to_datetime.to_s ) : Time.at(time).to_datetime.to_s }

#tag ${tag}_.operations_log
version 1.1.4
version 1.2.0
</record>
remove_keys host
</filter>

0 comments on commit e54cba4

Please sign in to comment.
You can’t perform that action at this time.