forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvector.spec.toml
8777 lines (7645 loc) · 211 KB
/
vector.spec.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# __ __ __
# \ \ / / / /
# \ V / / /
# \_/ \/
#
# V E C T O R
# Configuration Specification
#
# ------------------------------------------------------------------------------
# Website: https://vector.dev
# Docs: https://vector.dev/docs/
# Community: https://vector.dev/community
# ------------------------------------------------------------------------------
# The file contains a full specification for the `vector.toml` configuration
# file. It follows the TOML format and includes all options, types, and
# possible values.
#
# More info on Vector's configuration can be found at:
# /docs/setup/configuration/
# ------------------------------------------------------------------------------
# Global
# ------------------------------------------------------------------------------
# Global options are relevant to Vector as a whole and apply to global behavior.
#
# General
#
# The directory used for persisting Vector state, such as on-disk buffers, file
# checkpoints, and more. Please make sure the Vector project has write
# permissions to this dir.
#
# * optional
# * no default
# * type: string
data_dir = "/var/lib/vector"
# The list of DNS servers Vector will use to resolve DNS requests. When set
# Vector will ignore the system configuration and use only the list of DNS
# servers provided. If this option is not set then Vector will attempt to use
# the system configuration.
#
# * optional
# * no default
# * type: [string]
dns_servers = ["0.0.0.0:53"]
#
# Log schema
#
[.log_schema]
# The key used to hold the log host. See the log data model page for more info.
#
# * optional
# * default: "host"
# * type: string
host_key = "host"
host_key = "@host"
host_key = "instance"
host_key = "machine"
# The key under which Kubernetes related fields are nested.
#
# * optional
# * default: "kubernetes"
# * type: string
kubernetes_key = "kubernetes"
kubernetes_key = "kube"
kubernetes_key = "k8s"
# The key used to hold the log message. See the log data model page for more
# info.
#
# * optional
# * default: "message"
# * type: string
message_key = "message"
message_key = "@message"
message_key = "msg"
# The key used to represent when the log was generated. See the log data model
# page for more info.
#
# * optional
# * default: "timestamp"
# * type: string
timestamp_key = "timestamp"
timestamp_key = "@timestamp"
timestamp_key = "datetime"
# ------------------------------------------------------------------------------
# Sources
# ------------------------------------------------------------------------------
# Sources specify data sources and are responsible for ingesting data into
# Vector.
# Ingests data through the Docker engine daemon and outputs `log` events.
[sources.docker]
# The component type. This is a required field that tells Vector which
# component to use. The value _must_ be `#{name}`.
#
# * required
# * type: string
# * must be: "docker"
type = "docker"
# Setting this to `false` will disable the automatic merging of partial events.
#
# * optional
# * default: true
# * type: bool
auto_partial_merge = true
auto_partial_merge = false
# A list of container IDs _or_ names to match against. Prefix matches are
# supported, meaning you can supply just the first few characters of the
# container ID or name. If not provided, all containers will be included.
#
# * optional
# * no default
# * type: [string]
include_containers = ["serene_", "serene_leakey", "ad08cc418cf9"]
# A list of image names to match against. If not provided, all images will be
# included.
#
# * optional
# * no default
# * type: [string]
include_images = ["httpd", "redis"]
# A list of container object labels to match against when filtering running
# containers. This should follow the described label's synatx in docker object
# labels docs.
#
# * optional
# * no default
# * type: [string]
include_labels = ["com.example.vendor=Timber Inc.", "com.example.name=Vector"]
# The field name to be added to events that are detected to contain an
# incomplete message (i.e. partial events). If set to `""`, no field will be
# added to partial event. This allows to opt-out of partial event detection.
#
# * optional
# * default: "_partial"
# * type: string
partial_event_marker_field = "_partial"
# Ingests data through one or more local files and outputs `log` events.
[sources.file]
#
# General
#
# The component type. This is a required field that tells Vector which
# component to use. The value _must_ be `#{name}`.
#
# * required
# * type: string
# * must be: "file"
type = "file"
# Array of file patterns to include. Globbing is supported.
#
# * required
# * type: [string]
include = ["/var/log/nginx/*.log"]
# The directory used to persist file checkpoint positions. By default, the
# global `data_dir` option is used. Please make sure the Vector project has
# write permissions to this dir.
#
# * optional
# * no default
# * type: string
data_dir = "/var/lib/vector"
# Array of file patterns to exclude. Globbing is supported.*Takes precedence
# over the `include` option.*
#
# * optional
# * no default
# * type: [string]
exclude = ["/var/log/nginx/*.[0-9]*.log"]
# Delay between file discovery calls. This controls the interval at which
# Vector searches for files.
#
# * optional
# * default: 1000
# * type: int
# * unit: milliseconds
glob_minimum_cooldown = 1000
# Ignore files with a data modification date that does not exceed this age.
#
# * optional
# * no default
# * type: int
# * unit: seconds
ignore_older = 86400
# The maximum number of a bytes a line can contain before being discarded. This
# protects against malformed lines or tailing incorrect files.
#
# * optional
# * default: 102400
# * type: int
# * unit: bytes
max_line_bytes = 102400
# For files with a stored checkpoint at startup, setting this option to `true`
# will tell Vector to read from the beginning of the file instead of the stored
# checkpoint.
#
# * optional
# * default: false
# * type: bool
start_at_beginning = false
start_at_beginning = true
#
# Context
#
# The key name added to each event with the full path of the file.
#
# * optional
# * default: "file"
# * type: string
file_key = "file"
# The key name added to each event representing the current host. This can also
# be globally set via the global `host_key` option.
#
# * optional
# * default: "host"
# * type: string
host_key = "host"
#
# Priority
#
# An approximate limit on the amount of data read from a single file at a given
# time.
#
# * optional
# * default: 2048
# * type: int
# * unit: bytes
max_read_bytes = 2048
# Instead of balancing read capacity fairly across all watched files,
# prioritize draining the oldest files before moving on to read data from
# younger files.
#
# * optional
# * default: false
# * type: bool
oldest_first = false
oldest_first = true
#
# Fingerprinting
#
[sources.file.fingerprinting]
# The strategy used to uniquely identify files. This is important for
# checkpointing when file rotation is used.
#
# * optional
# * default: "checksum"
# * type: string
# * enum: "checksum" or "device_and_inode"
strategy = "checksum"
strategy = "device_and_inode"
# The number of bytes read off the head of the file to generate a unique
# fingerprint.
#
# * optional
# * default: 256
# * type: int
# * unit: bytes
# * relevant when strategy = "checksum"
fingerprint_bytes = 256
# The number of bytes to skip ahead (or ignore) when generating a unique
# fingerprint. This is helpful if all files share a common header.
#
# * optional
# * default: 0
# * type: int
# * unit: bytes
# * relevant when strategy = "checksum"
ignored_header_bytes = 0
#
# Multiline
#
[sources.file.multiline]
# Condition regex pattern to look for. Exact behavior is configured via `mode`.
#
# * required
# * type: string
condition_pattern = "^[\\s]+"
condition_pattern = "\\\\$"
condition_pattern = "^(INFO|ERROR) "
condition_pattern = ";$"
# Mode of operation, specifies how the `condition_pattern` is interpreted.
#
# * required
# * type: string
# * enum: "continue_through", "continue_past", "halt_before", and "halt_with"
mode = "continue_through"
mode = "continue_past"
mode = "halt_before"
mode = "halt_with"
# Start regex pattern to look for as a beginning of the message.
#
# * required
# * type: string
start_pattern = "^[^\\s]"
start_pattern = "\\\\$"
start_pattern = "^(INFO|ERROR) "
start_pattern = "[^;]$"
# The maximum time to wait for the continuation. Once this timeout is reached,
# the buffered message is guaraneed to be flushed, even if incomplete.
#
# * required
# * type: int
# * unit: milliseconds
timeout_ms = 1000
timeout_ms = 600000
# Ingests data through the HTTP protocol and outputs `log` events.
[sources.http]
#
# General
#
# The component type. This is a required field that tells Vector which
# component to use. The value _must_ be `#{name}`.
#
# * required
# * type: string
# * must be: "http"
type = "http"
# The address to listen for connections on
#
# * required
# * type: string
address = "0.0.0.0:80"
address = "localhost:80"
# The expected encoding of received data. Note that for `json` and `ndjson`
# encodings, the fields of the JSON objects are output as separate fields.
#
# * optional
# * default: "text"
# * type: string
# * enum: "text", "ndjson", and "json"
encoding = "text"
encoding = "ndjson"
encoding = "json"
# A list of HTTP headers to include in the log event. These will override any
# values included in the JSON payload with conflicting names. An empty string
# will be inserted into the log event if the corresponding HTTP header was
# missing.
#
# * optional
# * no default
# * type: [string]
headers = ["User-Agent", "X-My-Custom-Header"]
#
# TLS
#
[sources.http.tls]
# Absolute path to an additional CA certificate file, in DER or PEM format
# (X.509).
#
# * optional
# * no default
# * type: string
ca_path = "/path/to/certificate_authority.crt"
# Absolute path to a certificate file used to identify this server, in DER or
# PEM format (X.509) or PKCS#12. If this is set and is not a PKCS#12 archive,
# `key_path` must also be set. This is required if `enabled` is set to `true`.
#
# * optional
# * no default
# * type: string
crt_path = "/path/to/host_certificate.crt"
# Require TLS for incoming connections. If this is set, an identity certificate
# is also required.
#
# * optional
# * default: false
# * type: bool
enabled = false
enabled = true
# Pass phrase used to unlock the encrypted key file. This has no effect unless
# `key_path` is set.
#
# * optional
# * no default
# * type: string
key_pass = "${KEY_PASS_ENV_VAR}"
key_pass = "PassWord1"
# Absolute path to a certificate key file used to identify this server, in DER
# or PEM format (PKCS#8).
#
# * optional
# * no default
# * type: string
key_path = "/path/to/host_certificate.key"
# If `true`, Vector will require a TLS certificate from the connecting host and
# terminate the connection if it is not valid. If `false` (the default), Vector
# will ignore the presence of a client certificate.
#
# * optional
# * default: false
# * type: bool
verify_certificate = false
verify_certificate = true
# Ingests data through Systemd's Journald utility and outputs `log` events.
[sources.journald]
# The component type. This is a required field that tells Vector which
# component to use. The value _must_ be `#{name}`.
#
# * required
# * type: string
# * must be: "journald"
type = "journald"
# The systemd journal is read in batches, and a checkpoint is set at the end of
# each batch. This option limits the size of the batch.
#
# * optional
# * default: 16
# * type: int
batch_size = 16
# Include only entries from the current boot.
#
# * optional
# * default: true
# * type: bool
current_boot_only = true
current_boot_only = false
# The directory used to persist the journal checkpoint position. By default,
# the global `data_dir` is used. Please make sure the Vector project has write
# permissions to this dir.
#
# * optional
# * no default
# * type: string
data_dir = "/var/lib/vector"
# The full path of the `journalctl` executable. If not set, Vector will search
# the path for `journalctl`.
#
# * optional
# * default: "journalctl"
# * type: string
journalctl_path = "/usr/local/bin/journalctl"
# The list of units names to monitor. If empty or not present, all units are
# accepted. Unit names lacking a `"."` will have `".service"` appended to make
# them a valid service unit name.
#
# * optional
# * default: []
# * type: [string]
units = ["ntpd", "sysinit.target"]
# Ingests data through Kafka and outputs `log` events.
[sources.kafka]
#
# General
#
# The component type. This is a required field that tells Vector which
# component to use. The value _must_ be `#{name}`.
#
# * required
# * type: string
# * must be: "kafka"
type = "kafka"
# A comma-separated list of host and port pairs that are the addresses of the
# Kafka brokers in a "bootstrap" Kafka cluster that a Kafka client connects to
# initially to bootstrap itself.
#
# * required
# * type: string
bootstrap_servers = "10.14.22.123:9092,10.14.23.332:9092"
# The consumer group name to be used to consume events from Kafka.
#
# * required
# * type: string
group_id = "consumer-group-name"
# The Kafka topics names to read events from. Regex is supported if the topic
# begins with `^`.
#
# * required
# * type: [string]
topics = ["^(prefix1|prefix2)-.+", "topic-1", "topic-2"]
# If offsets for consumer group do not exist, set them using this strategy.
# librdkafka documentation for `auto.offset.reset` option for explanation.
#
# * optional
# * default: "largest"
# * type: string
auto_offset_reset = "smallest"
auto_offset_reset = "earliest"
auto_offset_reset = "beginning"
auto_offset_reset = "largest"
auto_offset_reset = "latest"
auto_offset_reset = "end"
auto_offset_reset = "error"
# Maximum time the broker may wait to fill the response.
#
# * optional
# * default: 100
# * type: int
# * unit: milliseconds
fetch_wait_max_ms = 50
fetch_wait_max_ms = 100
# The log field name to use for the topic key. If unspecified, the key would
# not be added to the log event. If the message has null key, then this field
# would not be added to the log event.
#
# * optional
# * no default
# * type: string
key_field = "topic"
# The Kafka session timeout in milliseconds.
#
# * optional
# * default: 10000
# * type: int
# * unit: milliseconds
session_timeout_ms = 5000
session_timeout_ms = 10000
# Default timeout for network requests.
#
# * optional
# * default: 60000
# * type: int
# * unit: milliseconds
socket_timeout_ms = 30000
socket_timeout_ms = 60000
#
# Advanced
#
[sources.kafka.librdkafka_options]
# The options and their values. Accepts `string` values.
#
# * optional
# * no default
# * type: string
"client.id" = "${ENV_VAR}"
"fetch.error.backoff.ms" = "1000"
"socket.send.buffer.bytes" = "100"
#
# TLS
#
[sources.kafka.tls]
# Absolute path to an additional CA certificate file, in DER or PEM format
# (X.509).
#
# * optional
# * no default
# * type: string
ca_path = "/path/to/certificate_authority.crt"
# Absolute path to a certificate file used to identify this connection, in DER
# or PEM format (X.509) or PKCS#12. If this is set and is not a PKCS#12
# archive, `key_path` must also be set.
#
# * optional
# * no default
# * type: string
crt_path = "/path/to/host_certificate.crt"
# Enable TLS during connections to the remote.
#
# * optional
# * default: false
# * type: bool
enabled = false
enabled = true
# Pass phrase used to unlock the encrypted key file. This has no effect unless
# `key_path` is set.
#
# * optional
# * no default
# * type: string
key_pass = "${KEY_PASS_ENV_VAR}"
key_pass = "PassWord1"
# Absolute path to a certificate key file used to identify this connection, in
# DER or PEM format (PKCS#8). If this is set, `crt_path` must also be set.
#
# * optional
# * no default
# * type: string
key_path = "/path/to/host_certificate.key"
# Ingests data through the Heroku Logplex HTTP Drain protocol and outputs `log` events.
[sources.logplex]
#
# General
#
# The component type. This is a required field that tells Vector which
# component to use. The value _must_ be `#{name}`.
#
# * required
# * type: string
# * must be: "logplex"
type = "logplex"
# The address to accept connections on. The address _must_ include a port.
#
# * required
# * type: string
address = "0.0.0.0:80"
#
# TLS
#
[sources.logplex.tls]
# Absolute path to an additional CA certificate file, in DER or PEM format
# (X.509).
#
# * optional
# * no default
# * type: string
ca_path = "/path/to/certificate_authority.crt"
# Absolute path to a certificate file used to identify this server, in DER or
# PEM format (X.509) or PKCS#12. If this is set and is not a PKCS#12 archive,
# `key_path` must also be set. This is required if `enabled` is set to `true`.
#
# * optional
# * no default
# * type: string
crt_path = "/path/to/host_certificate.crt"
# Require TLS for incoming connections. If this is set, an identity certificate
# is also required.
#
# * optional
# * default: false
# * type: bool
enabled = false
enabled = true
# Pass phrase used to unlock the encrypted key file. This has no effect unless
# `key_path` is set.
#
# * optional
# * no default
# * type: string
key_pass = "${KEY_PASS_ENV_VAR}"
key_pass = "PassWord1"
# Absolute path to a certificate key file used to identify this server, in DER
# or PEM format (PKCS#8).
#
# * optional
# * no default
# * type: string
key_path = "/path/to/host_certificate.key"
# If `true`, Vector will require a TLS certificate from the connecting host and
# terminate the connection if it is not valid. If `false` (the default), Vector
# will ignore the presence of a client certificate.
#
# * optional
# * default: false
# * type: bool
verify_certificate = false
verify_certificate = true
# Ingests data through the Prometheus text exposition format and outputs `metric` events.
[sources.prometheus]
# The component type. This is a required field that tells Vector which
# component to use. The value _must_ be `#{name}`.
#
# * required
# * type: string
# * must be: "prometheus"
type = "prometheus"
# Host addresses to scrape metrics from.
#
# * required
# * type: [string]
hosts = ["http://localhost:9090"]
# The interval between scrapes, in seconds.
#
# * optional
# * default: 15
# * type: int
# * unit: seconds
scrape_interval_secs = 15
# Ingests data through a socket, such as a TCP, UDP, or UDS socket and outputs `log` events.
[sources.socket]
#
# General
#
# The component type. This is a required field that tells Vector which
# component to use. The value _must_ be `#{name}`.
#
# * required
# * type: string
# * must be: "socket"
type = "socket"
# The address to listen for connections on, or `systemd#N` to use the Nth
# socket passed by systemd socket activation. If an address is used it _must_
# include a port.
#
# * required
# * type: string
# * required when mode = "tcp" or mode = "udp"
address = "0.0.0.0:9000"
address = "systemd"
address = "systemd#3"
# The type of socket to use.
#
# * required
# * type: string
# * enum: "tcp", "udp", and "unix"
mode = "tcp"
mode = "udp"
mode = "unix"
# The unix socket path. *This should be absolute path*.
#
# * required
# * type: string
# * required when mode = "unix"
path = "/path/to/socket"
# The maximum bytes size of incoming messages before they are discarded.
#
# * optional
# * default: 102400
# * type: int
# * unit: bytes
max_length = 102400
# The timeout before a connection is forcefully closed during shutdown.
#
# * optional
# * default: 30
# * type: int
# * unit: seconds
# * relevant when mode = "tcp"
shutdown_timeout_secs = 30
#
# Context
#
# The key name added to each event representing the current host. This can also
# be globally set via the global `host_key` option.
#
# * optional
# * default: "host"
# * type: string
host_key = "host"
#
# TLS
#
[sources.socket.tls]
# Absolute path to an additional CA certificate file, in DER or PEM format
# (X.509).
#
# * optional
# * no default
# * type: string
# * relevant when mode = "tcp"
ca_path = "/path/to/certificate_authority.crt"
# Absolute path to a certificate file used to identify this server, in DER or
# PEM format (X.509) or PKCS#12. If this is set and is not a PKCS#12 archive,
# `key_path` must also be set. This is required if `enabled` is set to `true`.
#
# * optional
# * no default
# * type: string
# * relevant when mode = "tcp"
crt_path = "/path/to/host_certificate.crt"
# Require TLS for incoming connections. If this is set, an identity certificate
# is also required.
#
# * optional
# * default: false
# * type: bool
# * relevant when mode = "tcp"
enabled = false
enabled = true
# Pass phrase used to unlock the encrypted key file. This has no effect unless
# `key_path` is set.
#
# * optional
# * no default
# * type: string
# * relevant when mode = "tcp"
key_pass = "${KEY_PASS_ENV_VAR}"
key_pass = "PassWord1"
# Absolute path to a certificate key file used to identify this server, in DER
# or PEM format (PKCS#8).
#
# * optional
# * no default
# * type: string
# * relevant when mode = "tcp"
key_path = "/path/to/host_certificate.key"
# If `true`, Vector will require a TLS certificate from the connecting host and
# terminate the connection if it is not valid. If `false` (the default), Vector
# will ignore the presence of a client certificate.
#
# * optional
# * default: false
# * type: bool
# * relevant when mode = "tcp"
verify_certificate = false
verify_certificate = true
# Ingests data through the Splunk HTTP Event Collector protocol and outputs `log` events.
[sources.splunk_hec]
#
# General
#
# The component type. This is a required field that tells Vector which
# component to use. The value _must_ be `#{name}`.
#
# * required
# * type: string
# * must be: "splunk_hec"
type = "splunk_hec"
# The address to accept connections on.
#
# * optional
# * default: "0.0.0.0:80"
# * type: string
address = "0.0.0.0:80"
# If supplied, incoming requests must supply this token in the `Authorization`
# header, just as a client would if it was communicating with the Splunk HEC
# endpoint directly. If _not_ supplied, the `Authorization` header will be
# ignored and requests will not be authenticated.
#
# * optional
# * no default
# * type: string
token = "A94A8FE5CCB19BA61C4C08"
#
# TLS
#
[sources.splunk_hec.tls]
# Absolute path to an additional CA certificate file, in DER or PEM format
# (X.509).
#
# * optional
# * no default
# * type: string
ca_path = "/path/to/certificate_authority.crt"
# Absolute path to a certificate file used to identify this server, in DER or
# PEM format (X.509) or PKCS#12. If this is set and is not a PKCS#12 archive,
# `key_path` must also be set. This is required if `enabled` is set to `true`.
#
# * optional
# * no default
# * type: string
crt_path = "/path/to/host_certificate.crt"
# Require TLS for incoming connections. If this is set, an identity certificate
# is also required.
#
# * optional
# * default: false
# * type: bool
enabled = false
enabled = true
# Pass phrase used to unlock the encrypted key file. This has no effect unless
# `key_path` is set.
#
# * optional
# * no default
# * type: string
key_pass = "${KEY_PASS_ENV_VAR}"
key_pass = "PassWord1"
# Absolute path to a certificate key file used to identify this server, in DER
# or PEM format (PKCS#8).
#
# * optional
# * no default
# * type: string
key_path = "/path/to/host_certificate.key"
# If `true`, Vector will require a TLS certificate from the connecting host and
# terminate the connection if it is not valid. If `false` (the default), Vector
# will ignore the presence of a client certificate.
#
# * optional
# * default: false
# * type: bool
verify_certificate = false
verify_certificate = true
# Ingests data through the StatsD UDP protocol and outputs `metric` events.
[sources.statsd]
# The component type. This is a required field that tells Vector which
# component to use. The value _must_ be `#{name}`.
#
# * required
# * type: string
# * must be: "statsd"
type = "statsd"
# UDP socket address to bind to.
#
# * required
# * type: string
address = "127.0.0.1:8126"
# Ingests data through standard input (STDIN) and outputs `log` events.
[sources.stdin]
#
# General
#
# The component type. This is a required field that tells Vector which
# component to use. The value _must_ be `#{name}`.
#
# * required
# * type: string
# * must be: "stdin"
type = "stdin"
# The maxiumum bytes size of a message before it is discarded.
#
# * optional
# * default: 102400