You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+57-3Lines changed: 57 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ Once you have the workspace, get Workspace ID and Shared Key (either Primary Key
69
69
fluent-plugin-azure-loganalytics adds **time** and **tag** attributes by default if **add_time_field** and **add_tag_field** are true respectively. Below are two types of the plugin configurations - Default and All options configuration.
70
70
71
71
### (1) Default Configuration (No options)
72
-
<u>fluent.conf</u>
72
+
<u>fluent_1.conf</u>
73
73
```
74
74
<source>
75
75
@type tail # input plugin
@@ -88,7 +88,7 @@ fluent-plugin-azure-loganalytics adds **time** and **tag** attributes by default
88
88
```
89
89
90
90
### (2) Configuration with All Options
91
-
<u>fluent.conf</u>
91
+
<u>fluent_2.conf</u>
92
92
```
93
93
<source>
94
94
@type tail # input plugin
@@ -114,7 +114,7 @@ fluent-plugin-azure-loganalytics adds **time** and **tag** attributes by default
114
114
### (3) Configuration with Typecast filter
115
115
116
116
You want to add typecast filter when you want to cast fields type. The filed type of code and size are cast by typecast filter.
117
-
<u>fluent.conf</u>
117
+
<u>fluent_typecast.conf</u>
118
118
```
119
119
<source>
120
120
@type tail # input plugin
@@ -146,6 +146,50 @@ You want to add typecast filter when you want to cast fields type. The filed typ
146
146
```
147
147
gem install fluent-plugin-filter_typecast
148
148
```
149
+
### (4) Configuration with CSV format as input and specific field type as output
150
+
You want to send to Log Analytics, logs generated with known delimiter (like comma, semi-colon) then you can use the csv format of fluentd and the keys/types properties.
151
+
This can be used with any log, here implemented with Nginx custom log.
152
+
<u>fluent_csv.conf</u>
153
+
154
+
Suppose your log is formated the way below in the /etc/nginx/conf.d/log.conf:
0 commit comments