Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
172b2f83
Commit
172b2f83
authored
Dec 30, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1731 from mitodl/cg/grok_tracking_elk
Add tracking log intelligence to ELK
parents
cac73c99
038ad579
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
playbooks/roles/logstash/templates/logstash.conf.j2
+13
-3
No files found.
playbooks/roles/logstash/templates/logstash.conf.j2
View file @
172b2f83
input {
tcp {
port => {{ logstash_syslog_port }}
port => {{ logstash_syslog_port }}
type => syslog
}
udp {
...
...
@@ -20,6 +20,16 @@ filter {
date {
match => [ "syslog_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ]
}
# Try and parse the tracking log json
# 142 is syslog facility 17 (local1) and Informational.
# This is used to reduce the number of errors in json parsing as
# tracking uses that facility and priority by default.
if "142" in [syslog_pri] {
json {
source => "syslog_message"
target => "tracking"
}
}
if !("_grokparsefailure" in [tags]) {
mutate {
replace => [ "@source_host", "%{syslog_hostname}" ]
...
...
@@ -37,8 +47,8 @@ output {
elasticsearch { }
# And gzip for each host and program
file {
path => '{{ logstash_data_dir }}/%{@source_host}/all.%{+yyyyMMdd}.gz'
gzip => true
path => '{{ logstash_data_dir }}/%{@source_host}/all.%{+yyyyMMdd}.gz'
gzip => true
}
# Should add option for S3 as well.
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment