11# Global options
22options :
33 debug : true
4+ # maxLogSize: 16384
45
5- input :
6- files :
7- # ship everything EXCEPT for auth*.log, system*.log, and kernel*.log
8- - /var/log/!(auth*.log|system*.log|kernel*.log)
6+ # input:
7+ # files:
8+ # # ship everything EXCEPT for auth*.log, system*.log, and kernel*.log
9+ # - /var/log/!(auth*.log|system*.log|kernel*.log)
910
10- # ship everything EXCEPT for kube*.log, storage*.log, etcd*.log, and coredns*.log
11- - /var/log/containers/!(kube*.log|storage*.log|etcd*.log|coredns*.log)
11+ # # ship everything EXCEPT for kube*.log, storage*.log, etcd*.log, and coredns*.log
12+ # - /var/log/containers/!(kube*.log|storage*.log|etcd*.log|coredns*.log)
13+
14+ # inputFilter:
15+ # - module: grep
16+ # config:
17+ # matchSource: !!js/regexp /.*log/ # match log files
18+ # include: !!js/regexp /failed|error|exception/i # include errors
19+ # exclude: !!js/regexp /super noisy error messages/i # exclude noise
20+
21+ input :
22+ # stdin: true
23+ files :
24+ - ' /home/raha/code/sematext/logagent-js/0.log'
1225
1326inputFilter :
14- - module : grep
15- config :
16- matchSource : !!js/regexp /.*log/ # match log files
17- include : !!js/regexp /failed|error|exception/i # include errors
18- exclude : !!js/regexp /super noisy error messages/i # exclude noise
27+ # parse containerd log format, add pod info to log context
28+ - module : input-filter-k8s-containerd
29+ # - module: input-filter-k8s-containerd-multiline
30+
31+ # outputFilter:
32+ # add k8s metadata via k8s API
33+ # - module: kubernetes-enrichment
34+
35+ # parser:
36+ # patterns:
37+ # -
38+ # # sourceName: !!js/regexp /\.log/ # catch all system.log files
39+ # sourceName: !!js/regexp /unknown/
40+ # # blockStart: !!js/regexp /\d{4}\-\d{2}\-\d{2}\T\d{2}:\d{2}:\d{2}\.\d{9}Z\sstdout\sP/
41+ # match:
42+ # - type: venkat_custom_log_partial
43+ # regex: !!js/regexp /\[(.*)\]\s\[(.*)\]\s\[(.*)\]\s*Parameters:\s(.*)/
44+ # fields:
45+ # - trace_id
46+ # - customer_name
47+ # - customer_id
48+ # - message
49+ # - type: venkat_custom_log
50+ # regex: !!js/regexp /(\d{4}\-\d{2}\-\d{2}\T\d{2}:\d{2}:\d{2}\.\d{9}Z)\sstdout\s(P|F)\s(.*)/
51+ # fields:
52+ # - ts
53+ # - stdout_type
54+ # - message
55+ # - type: venkat_custom_log_partial
56+ # regex: !!js/regexp /(\d{4}\-\d{2}\-\d{2}\T\d{2}:\d{2}:\d{2}\.\d{9}Z)\s(stdout\sP)\s\[(.*)\]\s\[(.*)\]\s\[(.*)\]\s*Parameters:\s(.*)/
57+ # fields:
58+ # - ts
59+ # - stdout_type
60+ # - trace_id
61+ # - customer_name
62+ # - customer_id
63+ # - message
64+ # - type: venkat_custom_log_full
65+ # regex: !!js/regexp /(\d{4}\-\d{2}\-\d{2}\T\d{2}:\d{2}:\d{2}\.\d{9}Z)\s(stdout\sF)\s\[(.*)\]\s\[(.*)\]\s\[(.*)\]\s*Parameters:\s(.*)/
66+ # fields:
67+ # - ts
68+ # - stdout_type
69+ # - trace_id
70+ # - customer_name
71+ # - customer_id
72+ # - message
1973
2074output :
75+ # stdout: yaml
2176 elasticsearch :
2277 module : elasticsearch
23- url : https://logsene-receiver.sematext.com
24- index : YOUR_LOGS_APP_TOKEN
78+ url : https://logs-token-receiver.apps.test.sematext.com
79+ index : 174ac025-ea55-426d-b544-fcc3876ad247
80+ # maxBufferSize: 1
81+ # flushInterval: 10
0 commit comments