Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add description and sample for field cast pattern
- Loading branch information
Yoichi Kawasaki
committed
Nov 24, 2017
1 parent
a578f75
commit ff5f866
Showing
3 changed files
with
69 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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 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,25 @@ | ||
<source> | ||
@type tail # input plugin | ||
path /var/log/apache2/access.log # monitoring file | ||
pos_file /tmp/fluentd_pos_file # position file | ||
format apache # format | ||
tag azure-loganalytics.access # tag | ||
</source> | ||
|
||
<filter **> | ||
@type typecast | ||
types host:string,user:string,method:string,path:string,referer:string,agent:string,code:integer,size:integer | ||
</filter> | ||
|
||
<match azure-loganalytics.**> | ||
@type azure-loganalytics | ||
customer_id CUSTOMER_ID # Customer ID aka WorkspaceID String | ||
shared_key KEY_STRING # The primary or the secondary Connected Sources client authentication key | ||
log_type EVENT_TYPE_NAME # The name of the event type. ex) ApacheAccessLog | ||
add_time_field true | ||
time_field_name mytime | ||
time_format %s | ||
localtime true | ||
add_tag_field true | ||
tag_field_name mytag | ||
</match> |
This file contains 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