Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- output {
- if "_grokparsefailure" not in [tags] {
- if [type] == "frinit" or "frdriver" {
- if "ERROR" or "WARN" in [fr_log_level] {
- elasticsearch {
- index => "fr-%{+YYYY.MM.dd}"
- hosts => ["localhost:9200"]
- }
- }
- }
- if [type] == "nginx_access" {
- elasticsearch {
- index => "nginx-%{+YYYY.MM.dd}"
- hosts => ["localhost:9200"]
- }
- }
- if [type] == "ntpsync" {
- elasticsearch {
- index => "ntp-%{+YYYY.MM.dd}"
- hosts => ["localhost:9200"]
- }
- }
- if [type] == "sales" {
- elasticsearch {
- index => "sales-%{+YYYY.MM.dd}"
- hosts => ["localhost:9200"]
- }
- }
- if [type] == "terminal" {
- elasticsearch {
- index => "terminal-%{+YYYY.MM.dd}"
- hosts => ["localhost:9200"]
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment