File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed
helm-chart/splunk-connect-for-kubernetes
charts/splunk-kubernetes-logging Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,9 @@ data:
114
114
path {{ $logDef.from.file.path }}
115
115
pos_file {{ $.Values.containers.path }}/splunk-fluentd-{{ $name }}.pos
116
116
read_from_head true
117
+ {{- if $logDef.limitRecentlyModified }}
118
+ limit_recently_modified {{ $logDef.limitRecentlyModified }}
119
+ {{- end }}
117
120
path_key source
118
121
{{- if $logDef.multiline }}
119
122
multiline_flush_interval {{ $logDef.multiline.flushInterval | default "5s" }}
Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ charEncodingUtf8: false
172
172
# firstline: "<regexp_to_detect_firstline_of_multiline>"
173
173
# flushInterval 5
174
174
# sourcetype: "<sourcetype_of_logs>"
175
+ # limitRecentlyModified: <time_duration>
175
176
# ```
176
177
#
177
178
# = <source> =
@@ -223,6 +224,17 @@ charEncodingUtf8: false
223
224
# sourcetype of each kind of log can be defined using the `sourcetype` field.
224
225
# If `sourcetype` is not defined, `name` will be used.
225
226
#
227
+ # = limitRecentlyModified =
228
+ # Limits the watching files that the modification time is within the specified time period when using * in path.
229
+ # - <INTEGER>s: seconds
230
+ # - <INTEGER>m: minutes
231
+ # - <INTEGER>h: hours
232
+ # - <INTEGER>d: days
233
+ # - Otherwise, the field is parsed as float, and that float is the number of seconds
234
+ # Example, specifying `limitRecentlyModified: 24h` will parse only files with modification time within 24 hours.
235
+ # Files modified earlier will be skipped.
236
+ # If `limitRecentlyModified` is not defined, this option will be disabled.
237
+ #
226
238
# ---
227
239
# Here we have some default timestampExtraction and multiline settings for kubernetes components.
228
240
# So, usually you just need to redefine the source of those components if necessary.
Original file line number Diff line number Diff line change @@ -247,6 +247,7 @@ splunk-kubernetes-logging:
247
247
# firstline: "<regexp_to_detect_firstline_of_multiline>"
248
248
# flushInterval 5
249
249
# sourcetype: "<sourcetype_of_logs>"
250
+ # limitRecentlyModified: <time_duration>
250
251
# ```
251
252
#
252
253
# = <source> =
@@ -298,6 +299,17 @@ splunk-kubernetes-logging:
298
299
# sourcetype of each kind of log can be defined using the `sourcetype` field.
299
300
# If `sourcetype` is not defined, `name` will be used.
300
301
#
302
+ # = limitRecentlyModified =
303
+ # Limits the watching files that the modification time is within the specified time period when using * in path.
304
+ # - <INTEGER>s: seconds
305
+ # - <INTEGER>m: minutes
306
+ # - <INTEGER>h: hours
307
+ # - <INTEGER>d: days
308
+ # - Otherwise, the field is parsed as float, and that float is the number of seconds
309
+ # Example, specifying `limitRecentlyModified: 24h` will parse only files with modification time within 24 hours.
310
+ # Files modified earlier will be skipped.
311
+ # If `limitRecentlyModified` is not defined, this option will be disabled.
312
+ #
301
313
# ---
302
314
# Here we have some default timestampExtraction and multiline settings for kubernetes components.
303
315
# So, usually you just need to redefine the source of those components if necessary.
You can’t perform that action at this time.
0 commit comments