-
Notifications
You must be signed in to change notification settings - Fork 115
Dilipr/fluent bit log processing #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0d4cd8b
Build out_oms.so and include in docker-cimprov package
abb7282
Adding fluent-bit-config file to base container
c9163d3
PR Feedback
r-dilip 029a038
Adding out_oms.conf to base_container.data
r-dilip ccbd668
PR Feedback
r-dilip 75bd22a
Making the critical section as small as possible
r-dilip ebbf2e1
PR Feedback
r-dilip 13a39b7
merge
r-dilip 12c8bab
Fixing the newline bug for Computer, and changing containerId to Id
r-dilip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| omsadmin_conf_path=/etc/opt/microsoft/omsagent/conf/omsadmin.conf | ||
| cert_file_path=/etc/opt/microsoft/omsagent/certs/oms.crt | ||
| key_file_path=/etc/opt/microsoft/omsagent/certs/oms.key | ||
| container_host_file_path=/var/opt/microsoft/docker-cimprov/state/containerhostname | ||
| container_inventory_refresh_interval=60 | ||
| kube_system_containers_refresh_interval=300 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| [SERVICE] | ||
| Flush 5 | ||
| Log_Level info | ||
| Parsers_File /etc/td-agent-bit/parsers.conf | ||
| Log_File /var/log/fluent-bit.log | ||
|
|
||
| [INPUT] | ||
| Name tail | ||
| Tag oms.container.log.* | ||
| Path /var/log/containers/*.log | ||
| DB /var/log/fblogs.db | ||
| Parser docker | ||
| Mem_Buf_Limit 30m | ||
| Path_Key filepath | ||
|
|
||
| [FILTER] | ||
| Name record_modifier | ||
| Match oms.container.log.* | ||
| Whitelist_key log | ||
| Whitelist_key stream | ||
| Whitelist_key time | ||
| Whitelist_key filepath | ||
|
|
||
| [FILTER] | ||
| Name modify | ||
| Match oms.container.log.* | ||
| Rename log LogEntry | ||
| Rename stream LogEntrySource | ||
| Rename time LogEntryTimeStamp | ||
| Rename filepath Filepath | ||
| Add_if_not_present SourceSystem Containers | ||
|
|
||
| [OUTPUT] | ||
| Name oms | ||
| Match oms.container.log.* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| GITVERSION := 0.1 | ||
| UNAME_S := $(shell uname -s) | ||
| ifeq ($(UNAME_S),Linux) | ||
| BUILDDATE := $(shell date --rfc-3339=seconds) | ||
| endif | ||
| ifeq ($(UNAME_S),Darwin) | ||
| BUILDDATE := $(shell gdate --rfc-3339=seconds) | ||
| endif | ||
|
|
||
| fbplugin: | ||
| go build -ldflags "-X 'main.revision=$(GITVERSION)' -X 'main.builddate=$(BUILDDATE)'" -buildmode=c-shared -o out_oms.so . | ||
|
|
||
| test: | ||
| go test -cover -race -coverprofile=coverage.txt -covermode=atomic | ||
|
|
||
| glide: | ||
| glide install | ||
|
|
||
| clean: | ||
| rm -rf *.so *.h *~ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| package: plugins | ||
| import: | ||
| - package: github.com/fluent/fluent-bit-go | ||
| subpackages: | ||
| - output | ||
| - package: github.com/mitchellh/mapstructure | ||
r-dilip marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| version: ^1.0.0 | ||
| - package: k8s.io/apimachinery | ||
| subpackages: | ||
| - pkg/apis/meta/v1 | ||
| - package: k8s.io/client-go | ||
| version: ^8.0.0 | ||
| subpackages: | ||
| - kubernetes | ||
| - rest | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add the 2 log files (& touch chmod as for other log files ex;- kubernetes_client_log)