Advertisement
Guest User

Untitled

a guest
Nov 8th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.75 KB | None | 0 0
  1. ################### Filebeat Configuration Example #########################
  2.  
  3. ############################# Filebeat ######################################
  4. filebeat:
  5.  # List of prospectors to fetch data.
  6.   prospectors:
  7.     paths:
  8.         - /Users/mmlug/Documents/univeristy/runtime/glassfish-3.1/glassfish/domains/domain1/logs/server.log
  9.     input_type: log
  10.     exclude_lines: ["^DBG"]
  11.    
  12.     multiline:
  13.       pattern: (?m)\[\#\|%{TIMESTAMP_ISO8601:timestamp}\|%{LOGLEVEL:Log Level}\|%{DATA:server_version}\|%{JAVACLASS:Class}\|%{DATA:thread}\|%{DATA:message_detail}\|\#\]
  14.       negate: true
  15.       match: after
  16.    
  17.   output:
  18.  ### Logstash as output
  19.       logstash:
  20.         # The Logstash hosts
  21.       hosts: ["localhost:5044"]
  22.  
  23.   logging:
  24.  
  25.   shipper:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement