EGI-FCTF/oneacct_export

View on GitHub
lib/templates/logstash-0.1.erb

Summary

Maintainability
Test Coverage
<% for vm in @data -%>
{  "@source": "<%= vm['host'] %>_<%= vm['port'] %>",  "@tags": [  "history"  ],  "@fields": <%= vm.to_json %>,  "@timestamp": "<%= Time.at(vm['start_time']).utc.strftime('%FT%T%:z') %>" }
<% end -%>