Skip to content

Commit

Permalink
Fix payload_builder (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
thesues authored and tomwilkie committed Mar 11, 2019
1 parent 54d644e commit 8b0469f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluentd/fluent-plugin-loki/lib/fluent/plugin/out_loki.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def payload_builder(streams)
# 'labels' => '{worker="0"}',
payload.push(
'labels' => labels_to_protocol(k),
'entries' => v.sort_by { |hsh| hsh[:ts] }
'entries' => v.sort_by { |hsh| Time.parse(hsh["ts"])}
)
end
payload
Expand Down

0 comments on commit 8b0469f

Please sign in to comment.