Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a07d4058
Commit
a07d4058
authored
Oct 13, 2014
by
Daniel Smith
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1761 from satnam6502/fluentd-es-image
Minor tweaks to Fluentd toi Elasticsearch image
parents
f8071a6e
bae50467
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
build.sh
contrib/logging/fluentd-es-image/build.sh
+1
-1
run.sh
contrib/logging/fluentd-es-image/run.sh
+5
-3
td-agent.conf
contrib/logging/fluentd-es-image/td-agent.conf
+2
-2
No files found.
contrib/logging/fluentd-es-image/build.sh
View file @
a07d4058
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
# Build the fluentd-elasticsearch image and push
# Build the fluentd-elasticsearch image and push
# to
google
/fluentd-elasticsearch.
# to
kubernetes
/fluentd-elasticsearch.
sudo
docker build
-t
kubernetes/fluentd-elasticsearch
.
sudo
docker build
-t
kubernetes/fluentd-elasticsearch
.
sudo
docker push kubernetes/fluentd-elasticsearch
sudo
docker push kubernetes/fluentd-elasticsearch
contrib/logging/fluentd-es-image/run.sh
View file @
a07d4058
...
@@ -20,8 +20,10 @@
...
@@ -20,8 +20,10 @@
# service IPs are done.
# service IPs are done.
OUTER_HOST
=
`
tail
-n
1 /outerhost |
awk
'{print $3}'
`
OUTER_HOST
=
`
tail
-n
1 /outerhost |
awk
'{print $3}'
`
# Copy the Fluentd config file and patch it to refer to the
# WARNING! HORRIBLE HACK! We expect /outerhost to be mapped to
# name of the host machine for ES_HOST. HACK!
# the enclosing /etc/host file so we can determine the name of
cp
td-agent.conf /etc/td-agent
# the host machine (super fragile). This is a temporary hack until
# service IPs are done.
# Adjust the name of the host machine for ES_HOST. HACK!
sed
-i
-e
"s/ES_HOST/
${
OUTER_HOST
}
/"
/etc/td-agent/td-agent.conf
sed
-i
-e
"s/ES_HOST/
${
OUTER_HOST
}
/"
/etc/td-agent/td-agent.conf
/usr/sbin/td-agent
/usr/sbin/td-agent
contrib/logging/fluentd-es-image/td-agent.conf
View file @
a07d4058
...
@@ -39,10 +39,10 @@
...
@@ -39,10 +39,10 @@
time_key
time
time_key
time
path
/
var
/
lib
/
docker
/
containers
/*/*-
json
.
log
path
/
var
/
lib
/
docker
/
containers
/*/*-
json
.
log
time_format
%
Y
-%
m
-%
dT
%
H
:%
M
:%
S
time_format
%
Y
-%
m
-%
dT
%
H
:%
M
:%
S
tag
docker
.
container
.
all
tag
docker
.
container
.
*
</
source
>
</
source
>
<
match
docker
.
container
.*>
<
match
docker
.
container
.*
*
>
type
elasticsearch
type
elasticsearch
log_level
info
log_level
info
include_tag_key
true
include_tag_key
true
...
...
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