{"id":1975,"date":"2021-09-07T08:33:11","date_gmt":"2021-09-07T06:33:11","guid":{"rendered":"http:\/\/clark.tipistrani.it\/?p=1975"},"modified":"2021-09-07T08:33:11","modified_gmt":"2021-09-07T06:33:11","slug":"logstash-yml","status":"publish","type":"post","link":"http:\/\/clark.tipistrani.it\/?p=1975","title":{"rendered":"logstash.yml"},"content":{"rendered":"<p>N.B.<br \/>\ncopiare i files .yml in .orig per avere un backup dato che sbagliare con lo yml \u00e8 troppo facile e con uno spazio in pi\u00f9 o in meno c&#8217;\u00e8 da impazzire.<\/p>\n<p>apt-get install logstash<br \/>\nvisto che il mondo \u00e8 ormai systemd l&#8217;installazione non crea i link di runlevel, quindi update-rc.d logstash defaults<\/p>\n<p>cd \/etc\/logstash<\/p>\n<p>cp logstash.yml logstash.orig<\/p>\n<p>il file\u00a0 logstash.yml non viene modificato ma nella directory \/etc\/logstash\/conf.d creiamo questi due files:<br \/>\n02-beats-input.conf che contiene:<br \/>\ninput {<br \/>\nbeats {<br \/>\nport =&gt; 5044<br \/>\n}<br \/>\n}<br \/>\ne 30-elasticsearch-output.conf che contiene:<br \/>\noutput {<br \/>\nelasticsearch {<br \/>\nhosts =&gt; [&#8220;192.168.2.252:9200&#8221;]<br \/>\nmanage_template =&gt; false<br \/>\nindex =&gt; &#8220;%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}&#8221;<br \/>\n}<br \/>\n}<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>N.B. copiare i files .yml in .orig per avere un backup dato che sbagliare con lo yml \u00e8 troppo facile e con uno spazio in pi\u00f9 o in meno c&#8217;\u00e8 da impazzire. apt-get install logstash visto che il mondo \u00e8 ormai systemd l&#8217;installazione non crea i link di runlevel, quindi update-rc.d logstash defaults cd \/etc\/logstash [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,14,6],"tags":[221,213,220,216],"class_list":["post-1975","post","type-post","status-publish","format-standard","hentry","category-linux","category-networking","category-work","tag-conf-d","tag-elk","tag-logstash","tag-yaml"],"_links":{"self":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1975"}],"version-history":[{"count":1,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1975\/revisions"}],"predecessor-version":[{"id":1976,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1975\/revisions\/1976"}],"wp:attachment":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1975"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}