Skip to content

sample - #1

Open
akmhmgc wants to merge 4 commits into
mainfrom
tut
Open

sample#1
akmhmgc wants to merge 4 commits into
mainfrom
tut

Conversation

@akmhmgc

@akmhmgc akmhmgc commented Sep 23, 2024

Copy link
Copy Markdown
Owner

No description provided.

Comment thread fluent/fluent.conf
Comment on lines +25 to +32
<source>
@type tail
path ./logs/access.log
<parse>
@type json
</parse>
tag monkey.access
</source>

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread fluent/fluent.conf Outdated
Comment on lines +34 to +40
<filter monkey.access>
@type grep
<exclude>
key action
pattern ^logout$
</exclude>
</filter>

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これでフィルターをかけることができる

Comment thread fluent/fluent.conf
Comment on lines +43 to +55
<label @sample>
<filter monkey.access>
@type grep
<exclude>
key action
pattern ^logout$
</exclude>
</filter>

<match monkey.access>
@type stdout
</match>
</label>

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread fluent/fluent.conf Outdated
<parse>
@type json
</parse>
tag monkey.access

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

source内のタグはフィルタリングの意味ではなく、後続する処理にどのようなタグを付与するかの情報

Comment thread fluent/fluent.conf
Comment on lines +53 to +57
@type copy
<store>
@type file
path ./logs/monkey.baby.log
</store>

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copyセクション
https://docs.fluentd.org/output/copy#less-than-store-greater-than-section

The copy output plugin copies events to multiple outputs.

複数のoutputに書き込み可能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant