Skip to content

Commit

Permalink
Merge pull request #22 from SumoLogic/repo-sync/apps/default
Browse files Browse the repository at this point in the history
🔄 synced file(s) with Sanyaku/apps
  • Loading branch information
portertech authored Jul 5, 2023
2 parents 03b5646 + 164012d commit 002be27
Show file tree
Hide file tree
Showing 4 changed files with 215 additions and 0 deletions.
61 changes: 61 additions & 0 deletions assets/conf.d/examples/kafka.yaml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
receivers:
kafka/localhost:
brokers: localhost:9092
filelog/kafka/serverLogs/localhost:
include_file_name: false
include_file_path: true
operators:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
include:
- /var/log/kafka/server*.log
filelog/kafka/controllerLogs/localhost:
multiline:
line_start_pattern: ^\[\S{3}\s\S{3}\s\d{1,2}\s[^\]]+\].*
include_file_name: false
include_file_path: true
operators:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
include:
- /var/log/kafka/controllerr*.log
processors:
resource/kafka_resource_attributes/localhost:
attributes:
- key: messaging.system
value: kafka
action: insert
- key: sumo.datasource
value: kafka
action: insert
- key: messaging.node.name
action: insert
from_attribute: host.name
- key: messaging.cluster.name
value: kafka_cluster
action: insert
service:
pipelines:
metrics/kafka/localhost:
receivers:
- kafka/localhost
processors:
- memory_limiter
- resourcedetection/system
- resource/kafka_resource_attributes/localhost
- batch
exporters:
- sumologic
logs/kafka/localhost:
receivers:
- filelog/kafka/serverLogs/localhost
- filelog/kafka/controllerLogs/localhost
processors:
- memory_limiter
- resourcedetection/system
- resource/kafka_resource_attributes/localhost
- batch
exporters:
- sumologic
40 changes: 40 additions & 0 deletions assets/conf.d/examples/linux_csma.yaml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
receivers:
filelog/linux/logs/localhost:
include_file_name: false
include_file_path: true
operators:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
include:
- /var/log/auth.log
- /var/log/syslog
- /var/log/daemon.log
- /var/log/dpkg.log
- /var/log/kern.log
- /var/log/audit/audit.log
- /var/log/secure
- /var/log/messages
- /var/log/yum.log
- /var/log/dnf.log
processors:
resource/linux_resource_attributes/localhost:
attributes:
- key: sumo.datasource
value: linux
action: insert
- key: _sourceCategory
value: otel/linux
action: insert
service:
pipelines:
logs/linux/localhost:
receivers:
- filelog/linux/logs/localhost
processors:
- memory_limiter
- resource/linux_resource_attributes/localhost
- resourcedetection/system
- batch
exporters:
- sumologic
61 changes: 61 additions & 0 deletions assets/conf.d/examples/nginx.yaml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
receivers:
nginx/localhost:
endpoint: http://localhost:80/status
filelog/nginx/accessLogs/localhost:
include_file_name: false
include_file_path: true
operators:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
include:
- /var/log/nginx/access*.log
filelog/nginx/errorLogs/localhost:
multiline:
line_start_pattern: ^\[\S{3}\s\S{3}\s\d{1,2}\s[^\]]+\].*
include_file_name: false
include_file_path: true
operators:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
include:
- /var/log/nginx/error*.log
processors:
resource/nginx_resource_attributes/localhost:
attributes:
- key: webengine.system
value: nginx
action: insert
- key: sumo.datasource
value: nginx
action: insert
- key: webengine.node.name
action: insert
from_attribute: host.name
- key: webengine.cluster.name
value: nginx_cluster
action: insert
service:
pipelines:
metrics/nginx/localhost:
receivers:
- nginx/localhost
processors:
- memory_limiter
- resourcedetection/system
- resource/nginx_resource_attributes/localhost
- batch
exporters:
- sumologic
logs/nginx/localhost:
receivers:
- filelog/nginx/accessLogs/localhost
- filelog/nginx/errorLogs/localhost
processors:
- memory_limiter
- resourcedetection/system
- resource/nginx_resource_attributes/localhost
- batch
exporters:
- sumologic
53 changes: 53 additions & 0 deletions assets/conf.d/examples/pcicomplianceforlinux.yaml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
##
# Template Syntax:
# Using handlebarsjs syntax
# see testingdata directory for more info on template validation
# Expected Common Template Variables
# pipeline_name -> Needed to support multiple databases
# user_attributes -> array of user defined key value attributes to add
# Expected App Specific Template Variables:
# linux_include_paths -> log file path array
receivers:
filelog/PCILinux/logs/localhost:
include_file_name: false
include_file_path: true
operators:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
include:
- /var/log/auth.log
- /var/log/syslog
- /var/log/daemon.log
- /var/log/dpkg.log
- /var/log/kern.log
- /var/log/audit/audit.log
- /var/log/secure
- /var/log/messages
- /var/log/yum.log
- /var/log/dnf.log
processors:
resource/PCILinux_resource_attributes/localhost:
attributes:
# Required static valued resource attributes
- key: sumo.datasource
value: linux
action: insert
# user_attributes will hold requires attribute values provided by UI
# Required resource attributes fallback, that should be exposed as user inputs in UI and be in user_attributes json object
- key: _sourceCategory
value: otel/linux
action: insert
service:
pipelines:
logs/PCILinux/localhost:
receivers:
- filelog/PCILinux/logs/localhost
processors:
- memory_limiter
- resource/PCILinux_resource_attributes/localhost
- resourcedetection/system
- batch
exporters:
- sumologic

0 comments on commit 002be27

Please sign in to comment.