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
038ad579
Commit
038ad579
authored
Dec 07, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tracking log intelligence to ELK
parent
cdc6cc63
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 @
038ad579
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