This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xxx.xxx.xxx.xxx [18/Sep/2018:11:45:06 +0530] sample.com 0.088 "GET /testurl?expand_level=3 HTTP/1.1" 200 2708 - - 30842315154552909626 | |
2405:204:92:922b:b009:f492:4fa4:ec5f "https://referrer.com?type=1233" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHT | |
ML, like Gecko) Chrome/70.0.3538.16 Safari/537.36" 172.10.113.51:443 "https" "XMLHttpRequest" 1537251306.080 0.088 0.001 0.088 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"CITY": "Mumbai", | |
"ORG": "Jio", | |
"ACTUAL_REFERER": "https://referrer.com?type=1233", | |
"OS": "Windows 7", | |
"CLEAN_URL": "/testurl", | |
"device": "Other", | |
"UPSTREAM_CACHE_STATUS": "-", | |
"REQUEST_URI": "/testurl?expand_level=3", | |
"RCODE": "200", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_template/template_nginx_access_log | |
{ | |
"index_patterns" : "*-nginx-access*", | |
"order" : 1, | |
"settings" : { | |
"number_of_shards" : 2, | |
"number_of_replicas" : 0, | |
"codec" : "best_compression" | |
}, | |
"mappings" : { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
kafka { | |
bootstrap_servers => "kafka1:9092,kafka2:9092,kafka3:9092" | |
group_id => "central-logging" | |
topics => ["nginx-logs"] | |
} | |
} | |
filter { | |
json { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- | |
exclude_files: | |
- .bz$ | |
fields: | |
log_topic: nginx-logs | |
paths: | |
- /var/logs/nginx/*_access_log | |
scan_frequency: 10s | |
type: log | |
- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filebeat.config.prospectors: | |
enabled: true | |
path: /mnt/filebeat/prospectors/*.yml | |
reload.enabled: true | |
reload.period: 10s | |
output.kafka: | |
hosts: ["kafka1:9092","kafka2:9092","kafka3:9092"] | |
topic: '%{[fields.log_topic]}' | |
partition.round_robin: |