Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
spring-elk
Project
Project
Details
Activity
Releases
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
Ravinder Pannala
spring-elk
Commits
e5f09916
Commit
e5f09916
authored
May 04, 2023
by
Ravinder Pannala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LogStash configuration file
parent
9087d61d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
logstash.conf
src/main/resources/logstash.conf
+40
-0
No files found.
src/main/resources/logstash.conf
0 → 100644
View file @
e5f09916
# Sample Logstash configuration for creating a simple
# Beats -> Logstash -> Elasticsearch pipeline.
input
{
file
{
type
=>
"java"
path
=>
"C:/elk/spring-boot-elk.log"
codec
=>
multiline
{
pattern
=>
"^%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}.*"
negate
=>
"true"
what
=>
"previous"
}
}
beats
{
port
=>
5044
}
}
filter
{
#If log line contains tab character followed by 'at' then we will tag that entry as stacktrace
if
[
message
] =~
"\tat"
{
grok
{
match
=> [
"message"
,
"^(\tat)"
]
add_tag
=> [
"stacktrace"
]
}
}
}
output
{
stdout
{
codec
=>
rubydebug
}
elasticsearch
{
hosts
=> [
"http://localhost:9200"
]
#index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
#user => "elastic"
#password => "changeme"
}
}
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