EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ESA
PRISM
VS
Merge requests
!17
Something went wrong on our end
Resolve "Integrate ELK stack with Fluentd"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Integrate ELK stack with Fluentd"
9-logging-setup
into
master
Overview
0
Commits
20
Pipelines
0
Changes
1
Merged
Bernhard Mallinger
requested to merge
9-logging-setup
into
master
4 years ago
Overview
0
Commits
20
Pipelines
0
Changes
1
Expand
Closes
#9 (closed)
0
0
Merge request reports
Viewing commit
c4f64e82
Prev
Next
Show latest version
1 file
+
1
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
c4f64e82
Keep fields like `container_name` when parsing apache logs
· c4f64e82
Bernhard Mallinger
authored
4 years ago
fluentd/conf/fluent.conf
0 → 100644
+
49
−
0
Options
<
system
>
log_level
debug
</
system
>
<
source
>
@
type
forward
port
24224
bind
0
.
0
.
0
.
0
</
source
>
<
match
docker
.
apache2
>
@
type
rewrite_tag_filter
<
rule
>
key
source
pattern
/^(.*)$/
tag
$
1
.${
tag
}
</
rule
>
</
match
>
<
filter
stdout
.
docker
.
apache2
>
@
type
parser
key_name
log
reserve_data
true
<
parse
>
@
type
regexp
# this is basically apache2 but also has the request time at the end as extra field
expression
/^(?<
host
>[^ ]*) [^ ]* (?<
user
>[^ ]*) \[(?<
time
>[^\]]*)\]
"(?<method>\S+)(?: +(?<path>[^ ]*) +\S*)?"
(?<
code
>[^ ]*) (?<
size
>[^ ]*)(?:
"(?<referer>[^\"
]*)
" "
(?<
agent
>[^\
"]*)"
)? (?<
request_serve_duration
>[^ ]*)$/
time_format
%
d
/%
b
/%
Y
:%
H
:%
M
:%
S
%
z
types
request_serve_duration
:
integer
</
parse
>
</
filter
>
<
match
*.**>
@
type
copy
<
store
>
@
type
elasticsearch
host
elasticsearch
port
9200
logstash_format
true
logstash_prefix
fluentd
logstash_dateformat
%
Y
%
m
%
d
include_tag_key
true
type_name
access_log
tag_key
@
log_name
flush_interval
1
s
</
store
>
</
match
>
Loading