Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fluentd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Plugins
fluentd
Commits
6774b721
Commit
6774b721
authored
7 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Introduce a new env variable FLUENTD_COMPANY
parent
63bd69e4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fluentd.py
+2
-1
2 additions, 1 deletion
fluentd.py
with
2 additions
and
1 deletion
fluentd.py
+
2
−
1
View file @
6774b721
...
...
@@ -38,6 +38,7 @@ class CallbackModule(CallbackBase):
fluent-logger
This plugin makes use of the following environment variables:
FLUENTD_COMPANY (optional): any string to separate multiple inventories
FLUENTD_SERVER (optional): defaults to localhost
FLUENTD_PORT (optional): defaults to 24224
FLUENTD_TYPE (optional): defaults to ansible
...
...
@@ -70,7 +71,7 @@ class CallbackModule(CallbackBase):
self
.
logger
.
addHandler
(
self
.
handler
)
self
.
hostname
=
socket
.
gethostname
()
self
.
session
=
str
(
uuid
.
uuid1
())
self
.
company
=
os
.
getenv
(
'
ANSIBLE
_COMPANY
'
,
''
)
self
.
company
=
os
.
getenv
(
'
FLUENTD
_COMPANY
'
,
''
)
self
.
errors
=
0
self
.
index
=
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment