aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lma/ansible-client/roles/td-agent/files/td-agent.conf
blob: 9d656e65f161c7c8a48bfb8e1c13709d71e8f4fa (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
# Copyright 2020 Adarsh yadav, Aditya Srivastava
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

<source>
  @type tail
  path /tmp/result*/*.log, /tmp/result*/*.dat, /tmp/result*/*.csv, /tmp/result*/stc-liveresults.dat.*, /var/log/userspace*.log, /var/log/sriovdp/*.log.*, /var/log/pods/**/*.log
  path_key log_path
# read_from_head true

  <parse>
    @type regexp
    expression ^(?<msg>.*)$
  </parse>

  tag log.test
</source>

<filter log.test>
  @type record_transformer
  enable_ruby
  <record>
    host "#{Socket.gethostname}"
  </record>
</filter>


<filter log.test>
  @type parser
  key_name log_path
  reserve_data true
  <parse>
    @type regexp
    expression /.*\/(?<file>.*)/
  </parse>
</filter>

<match log.test>
  @type copy

   <store>
     @type forward
     send_timeout 10s
     <server>
       host 10.10.120.211
       port 32224
     </server>
   </store>

  <store>
    @type stdout
  </store>
</match>