summaryrefslogtreecommitdiffstats
path: root/fluent-bit/conf/in_head.conf
blob: e3f6ab322c7a039d660edce4b63a3ab9a4983b20 (plain)
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
[SERVICE]
    # Flush
    # =====
    # Set an interval of seconds before to flush records to a destination
    Flush        5

    # Daemon
    # ======
    # Instruct Fluent Bit to run in foreground or background mode.
    Daemon       Off

    # Log_Level
    # =========
    # Set the verbosity level of the service, values can be:
    #
    # - error
    # - warning
    # - info
    # - debug
    # - trace
    #
    # By default 'info' is set, that means it includes 'error' and 'warning'.
    Log_Level    info

    # HTTP Monitoring Server
    # ======================
    #
    # HTTP_Monitor: enable/disable the HTTP Server to monitor
    #               Fluent Bit internals.
    # HTTP_Port   : specify the TCP port of the HTTP Server
    HTTP_Monitor Off
    HTTP_Port    2020

# Head Input
# ==========
[INPUT]
    Name head
    Tag  head.path_to_file

    # File
    # ====
    # File path. e.g. /proc/uptime (required)
    #
    File    /path/to/file

    # Buf_Size
    # ====
    # Buffer size to read file. Default: 256
    Buf_Size 256

    # Total Interval
    #     = Interval Sec + ( Interval Nsec / 1000 / 1000 / 1000 )
    #
    # Interval Sec
    # ====
    # Read interval (sec) Default: 1
    Interval_Sec 1

    # Interval NSec
    # ====
    # Read interval (nsec) Default: 0
    Interval_NSec 0

    # Add Path
    # ====
    # if true, append file path to each record. Default: false
    Add_Path true

    # Key
    # ====
    # Rename key Default: head
    Key head

    # Lines
    # ====
    # Lines to read. If sets, in_head works like 'head -n'
    Lines 10

    # Split_line
    # ====
    # If true, in_head splits lines into k-v pairs
    Split_line true

[OUTPUT]
    Name  stdout
    Match head.*