Skip to content

Commit 002be27

Browse files
authored
Merge pull request #22 from SumoLogic/repo-sync/apps/default
🔄 synced file(s) with Sanyaku/apps
2 parents 03b5646 + 164012d commit 002be27

File tree

4 files changed

+215
-0
lines changed

4 files changed

+215
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
receivers:
2+
kafka/localhost:
3+
brokers: localhost:9092
4+
filelog/kafka/serverLogs/localhost:
5+
include_file_name: false
6+
include_file_path: true
7+
operators:
8+
- type: move
9+
from: attributes["log.file.path"]
10+
to: resource["log.file.path"]
11+
include:
12+
- /var/log/kafka/server*.log
13+
filelog/kafka/controllerLogs/localhost:
14+
multiline:
15+
line_start_pattern: ^\[\S{3}\s\S{3}\s\d{1,2}\s[^\]]+\].*
16+
include_file_name: false
17+
include_file_path: true
18+
operators:
19+
- type: move
20+
from: attributes["log.file.path"]
21+
to: resource["log.file.path"]
22+
include:
23+
- /var/log/kafka/controllerr*.log
24+
processors:
25+
resource/kafka_resource_attributes/localhost:
26+
attributes:
27+
- key: messaging.system
28+
value: kafka
29+
action: insert
30+
- key: sumo.datasource
31+
value: kafka
32+
action: insert
33+
- key: messaging.node.name
34+
action: insert
35+
from_attribute: host.name
36+
- key: messaging.cluster.name
37+
value: kafka_cluster
38+
action: insert
39+
service:
40+
pipelines:
41+
metrics/kafka/localhost:
42+
receivers:
43+
- kafka/localhost
44+
processors:
45+
- memory_limiter
46+
- resourcedetection/system
47+
- resource/kafka_resource_attributes/localhost
48+
- batch
49+
exporters:
50+
- sumologic
51+
logs/kafka/localhost:
52+
receivers:
53+
- filelog/kafka/serverLogs/localhost
54+
- filelog/kafka/controllerLogs/localhost
55+
processors:
56+
- memory_limiter
57+
- resourcedetection/system
58+
- resource/kafka_resource_attributes/localhost
59+
- batch
60+
exporters:
61+
- sumologic
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
receivers:
2+
filelog/linux/logs/localhost:
3+
include_file_name: false
4+
include_file_path: true
5+
operators:
6+
- type: move
7+
from: attributes["log.file.path"]
8+
to: resource["log.file.path"]
9+
include:
10+
- /var/log/auth.log
11+
- /var/log/syslog
12+
- /var/log/daemon.log
13+
- /var/log/dpkg.log
14+
- /var/log/kern.log
15+
- /var/log/audit/audit.log
16+
- /var/log/secure
17+
- /var/log/messages
18+
- /var/log/yum.log
19+
- /var/log/dnf.log
20+
processors:
21+
resource/linux_resource_attributes/localhost:
22+
attributes:
23+
- key: sumo.datasource
24+
value: linux
25+
action: insert
26+
- key: _sourceCategory
27+
value: otel/linux
28+
action: insert
29+
service:
30+
pipelines:
31+
logs/linux/localhost:
32+
receivers:
33+
- filelog/linux/logs/localhost
34+
processors:
35+
- memory_limiter
36+
- resource/linux_resource_attributes/localhost
37+
- resourcedetection/system
38+
- batch
39+
exporters:
40+
- sumologic
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
receivers:
2+
nginx/localhost:
3+
endpoint: http://localhost:80/status
4+
filelog/nginx/accessLogs/localhost:
5+
include_file_name: false
6+
include_file_path: true
7+
operators:
8+
- type: move
9+
from: attributes["log.file.path"]
10+
to: resource["log.file.path"]
11+
include:
12+
- /var/log/nginx/access*.log
13+
filelog/nginx/errorLogs/localhost:
14+
multiline:
15+
line_start_pattern: ^\[\S{3}\s\S{3}\s\d{1,2}\s[^\]]+\].*
16+
include_file_name: false
17+
include_file_path: true
18+
operators:
19+
- type: move
20+
from: attributes["log.file.path"]
21+
to: resource["log.file.path"]
22+
include:
23+
- /var/log/nginx/error*.log
24+
processors:
25+
resource/nginx_resource_attributes/localhost:
26+
attributes:
27+
- key: webengine.system
28+
value: nginx
29+
action: insert
30+
- key: sumo.datasource
31+
value: nginx
32+
action: insert
33+
- key: webengine.node.name
34+
action: insert
35+
from_attribute: host.name
36+
- key: webengine.cluster.name
37+
value: nginx_cluster
38+
action: insert
39+
service:
40+
pipelines:
41+
metrics/nginx/localhost:
42+
receivers:
43+
- nginx/localhost
44+
processors:
45+
- memory_limiter
46+
- resourcedetection/system
47+
- resource/nginx_resource_attributes/localhost
48+
- batch
49+
exporters:
50+
- sumologic
51+
logs/nginx/localhost:
52+
receivers:
53+
- filelog/nginx/accessLogs/localhost
54+
- filelog/nginx/errorLogs/localhost
55+
processors:
56+
- memory_limiter
57+
- resourcedetection/system
58+
- resource/nginx_resource_attributes/localhost
59+
- batch
60+
exporters:
61+
- sumologic
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
##
3+
# Template Syntax:
4+
# Using handlebarsjs syntax
5+
# see testingdata directory for more info on template validation
6+
# Expected Common Template Variables
7+
# pipeline_name -> Needed to support multiple databases
8+
# user_attributes -> array of user defined key value attributes to add
9+
# Expected App Specific Template Variables:
10+
# linux_include_paths -> log file path array
11+
receivers:
12+
filelog/PCILinux/logs/localhost:
13+
include_file_name: false
14+
include_file_path: true
15+
operators:
16+
- type: move
17+
from: attributes["log.file.path"]
18+
to: resource["log.file.path"]
19+
include:
20+
- /var/log/auth.log
21+
- /var/log/syslog
22+
- /var/log/daemon.log
23+
- /var/log/dpkg.log
24+
- /var/log/kern.log
25+
- /var/log/audit/audit.log
26+
- /var/log/secure
27+
- /var/log/messages
28+
- /var/log/yum.log
29+
- /var/log/dnf.log
30+
processors:
31+
resource/PCILinux_resource_attributes/localhost:
32+
attributes:
33+
# Required static valued resource attributes
34+
- key: sumo.datasource
35+
value: linux
36+
action: insert
37+
# user_attributes will hold requires attribute values provided by UI
38+
# Required resource attributes fallback, that should be exposed as user inputs in UI and be in user_attributes json object
39+
- key: _sourceCategory
40+
value: otel/linux
41+
action: insert
42+
service:
43+
pipelines:
44+
logs/PCILinux/localhost:
45+
receivers:
46+
- filelog/PCILinux/logs/localhost
47+
processors:
48+
- memory_limiter
49+
- resource/PCILinux_resource_attributes/localhost
50+
- resourcedetection/system
51+
- batch
52+
exporters:
53+
- sumologic

0 commit comments

Comments
 (0)