Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
docker-elk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
段孔乐
docker-elk
Commits
d84dfb34
Commit
d84dfb34
authored
Jun 13, 2016
by
Michael Tarleton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Installed and configured the logstash-filter-json filter for message parsing in…
Installed and configured the logstash-filter-json filter for message parsing in JSON out of the box.
parent
08360215
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
Dockerfile
logstash/Dockerfile
+5
-2
logstash.conf
logstash/config/logstash.conf
+7
-0
No files found.
logstash/Dockerfile
View file @
d84dfb34
FROM
logstash:latest
\ No newline at end of file
FROM
logstash:latest
# Install plugins
RUN
logstash-plugin
install
logstash-filter-json
\ No newline at end of file
logstash/config/logstash.conf
View file @
d84dfb34
...
...
@@ -6,6 +6,13 @@ input {
## Add your filters here
# Added a default json filter for parsing the "message" field
filter
{
json
{
source
=>
"message"
}
}
output
{
elasticsearch
{
hosts
=>
"elasticsearch:9200"
...
...
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