#GIT
- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
| Configurar filebeat em JBOSS/Wildfly | |
| 1. Instalar o filebeat | |
| > curl -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-oss-6.3.2-amd64.deb | |
| > dpkg -i filebeat-oss-6.3.2-amd64.deb | |
| 2. Configurar o filebeat | |
| > /etc/filebeat/filebeat.yml |
Let Tomcat is download and installed under /opt/tomcat.
Also, let tomcat be a non-provileged user under which the server will be running.
We assume that we keep server's binaries under /opt/tomcat and we will create a server instance named foo under /var/tomcat/ (carrying its own conf, logs, webapps, work, lib directories).
See also https://dzone.com/articles/running-multiple-tomcat.
Create a template service unit file at /etc/systemd/system/tomcat@.service:
| #http://pastebin.com/xGt6vv9R from yardenbar | |
| output { | |
| if [type] == "postfix" { | |
| elasticsearch { | |
| host => [ "ES_HOSTNAME" ] | |
| protocol => "transport" | |
| cluster => "elasticsearch" | |
| index => "postfix-%{+YYYY.MM.dd}" | |
| manage_template => true | |
| template_overwrite => true |
| # ##################################################################### | |
| # DESC: Logstash configuration file. Typically forwarding logs to | |
| # Elasticsearch instance. | |
| # ##################################################################### | |
| # Where to get input | |
| input { | |
| # Get input from standard input device/interface | |
| stdin { | |
| type => "stdin-type" |