Skip to content

Instantly share code, notes, and snippets.

function daysInMonth(month, year){
return new Date(year, month, 0).getDate();
}
function estimate(current){
d = new Date();
n = d.getDate();
h = d.getHours();
y = d.getFullYear();
m = d.getMonth() + 1;
filebeat.prospectors:
- input_type: log
paths:
- /mnt/log/*.log
processors:
- add_cloud_metadata:
output.elasticsearch:
hosts: ['elasticsearch:9200']
046588baa88c67ee2a59154f5428ff3717cca9361d9e0973e21b5b063591d60b3a69be8827bdf8dc4a76d955605e8c5e77ff2e6b482da20615109a25d74320ece2