Skip to content

Commit

Permalink
Merge pull request #31 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
sumo-drosiek authored Sep 11, 2023
2 parents 73f2aa0 + 4c3a8f8 commit fa70b2d
Show file tree
Hide file tree
Showing 37 changed files with 709 additions and 15 deletions.
21 changes: 21 additions & 0 deletions assets/conf.d/darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ receivers:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
- type: copy
from: resource["log.file.path"]
to: resource["_sourceName"]
include:
- /var/log/system.log
- /var/log/install.log
Expand All @@ -40,9 +43,25 @@ processors:
- key: sumo.datasource
value: mac
action: insert
- key: _contentType
value: OpenTelemetry
action: insert
- key: _sourceCategory
value: otel/mac
action: insert
resource/mac_resource_attributes/metrics/localhost:
attributes:
- key: _source
value: mac/hostmetrics
action: insert
- key: _sourceName
value: mac
action: insert
resource/mac_resource_attributes/logs/localhost:
attributes:
- key: _source
value: mac/filelog
action: insert
service:
pipelines:
metrics/mac/localhost:
Expand All @@ -52,6 +71,7 @@ service:
- memory_limiter
- resource/mac_resource_attributes/localhost
- resourcedetection/system
- resource/mac_resource_attributes/metrics/localhost
- batch
exporters:
- sumologic
Expand All @@ -62,6 +82,7 @@ service:
- memory_limiter
- resource/mac_resource_attributes/localhost
- resourcedetection/system
- resource/mac_resource_attributes/logs/localhost
- batch
exporters:
- sumologic
24 changes: 24 additions & 0 deletions assets/conf.d/examples/activedirectory.yaml.example
Original file line number Diff line number Diff line change
@@ -1,16 +1,39 @@
receivers:
windowseventlog/activedirectory/application/localhost:
channel: Application
operators:
- type: add
field: resource["_sourceName"]
value: Application
windowseventlog/activedirectory/security/localhost:
channel: Security
operators:
- type: add
field: resource["_sourceName"]
value: Security
windowseventlog/activedirectory/system/localhost:
channel: System
operators:
- type: add
field: resource["_sourceName"]
value: System
processors:
resource/activedirectory_resource_attributes/localhost:
attributes:
- key: sumo.datasource
value: activeDirectory
action: insert
- key: _contentType
value: OpenTelemetry
action: insert
- key: _sourceCategory
value: otel/activeDirectory
action: insert
resource/activedirectory_resource_attributes/logs/localhost:
attributes:
- key: _source
value: activeDirectory/windowseventlog
action: insert
service:
pipelines:
logs/activedirectory/localhost:
Expand All @@ -21,6 +44,7 @@ service:
processors:
- memory_limiter
- resourcedetection/system
- resource/activedirectory_resource_attributes/logs/localhost
- resource/activedirectory_resource_attributes/localhost
- batch
exporters:
Expand Down
24 changes: 24 additions & 0 deletions assets/conf.d/examples/activemq.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ receivers:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
- type: copy
from: resource["log.file.path"]
to: resource["_sourceName"]
include:
- /opt/bitnami/activemq/data/activemq.log
filelog/activemqauditLogs/localhost:
Expand All @@ -45,6 +48,9 @@ receivers:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
- type: copy
from: resource["log.file.path"]
to: resource["_sourceName"]
include:
- /opt/bitnami/activemq/data/audit.log
processors:
Expand All @@ -56,6 +62,9 @@ processors:
- key: sumo.datasource
value: activemq
action: insert
- key: _contentType
value: OpenTelemetry
action: insert
- key: messaging.node.name
action: insert
from_attribute: host.name
Expand All @@ -65,6 +74,19 @@ processors:
- key: _sourceCategory
value: otel/activemq
action: insert
resource/activemq_resource_attributes/metrics/localhost:
attributes:
- key: _source
value: activemq/jmx
action: insert
- key: _sourceName
value: activemq
action: insert
resource/activemq_resource_attributes/logs/localhost:
attributes:
- key: _source
value: activemq/filelog
action: insert
service:
pipelines:
metrics/activemqmetrics/localhost:
Expand All @@ -74,6 +96,7 @@ service:
processors:
- memory_limiter
- resourcedetection/system
- resource/activemq_resource_attributes/metrics/localhost
- resource/activemq_resource_attributes/localhost
- batch
exporters:
Expand All @@ -85,6 +108,7 @@ service:
processors:
- memory_limiter
- resourcedetection/system
- resource/activemq_resource_attributes/logs/localhost
- resource/activemq_resource_attributes/localhost
- batch
exporters:
Expand Down
24 changes: 24 additions & 0 deletions assets/conf.d/examples/apache.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ receivers:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
- type: copy
from: resource["log.file.path"]
to: resource["_sourceName"]
include:
- /var/log/apache2/access.log
filelog/apache/errorLogs/localhost:
Expand All @@ -19,6 +22,9 @@ receivers:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
- type: copy
from: resource["log.file.path"]
to: resource["_sourceName"]
include:
- /var/log/apache2/error.log
processors:
Expand All @@ -30,12 +36,28 @@ processors:
- key: sumo.datasource
value: apache
action: insert
- key: _contentType
value: OpenTelemetry
action: insert
- key: webengine.node.name
action: insert
from_attribute: host.name
- key: webengine.cluster.name
value: apache_cluster
action: insert
resource/apache_resource_attributes/metrics/localhost:
attributes:
- key: _source
value: apache/apache
action: insert
- key: _sourceName
value: apache
action: insert
resource/apache_resource_attributes/logs/localhost:
attributes:
- key: _source
value: apache/filelog
action: insert
service:
pipelines:
metrics/apache/localhost:
Expand All @@ -44,6 +66,7 @@ service:
processors:
- memory_limiter
- resourcedetection/system
- resource/apache_resource_attributes/metrics/localhost
- resource/apache_resource_attributes/localhost
- batch
exporters:
Expand All @@ -55,6 +78,7 @@ service:
processors:
- memory_limiter
- resourcedetection/system
- resource/apache_resource_attributes/logs/localhost
- resource/apache_resource_attributes/localhost
- batch
exporters:
Expand Down
24 changes: 24 additions & 0 deletions assets/conf.d/examples/artifactory7.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ receivers:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
- type: copy
from: resource["log.file.path"]
to: resource["_sourceName"]
include:
- /var/opt/jfrog/artifactory/logs/artifactory.log
filelog/artifactory/accesslogs/localhost:
Expand All @@ -15,6 +18,9 @@ receivers:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
- type: copy
from: resource["log.file.path"]
to: resource["_sourceName"]
include:
- /var/opt/jfrog/artifactory/logs/access.log
filelog/artifactory/requestlogs/localhost:
Expand All @@ -24,6 +30,9 @@ receivers:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
- type: copy
from: resource["log.file.path"]
to: resource["_sourceName"]
include:
- /var/opt/jfrog/artifactory/logs/request.log
filelog/artifactory/trafficlogs/localhost:
Expand All @@ -33,6 +42,9 @@ receivers:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
- type: copy
from: resource["log.file.path"]
to: resource["_sourceName"]
include:
- /var/opt/jfrog/artifactory/logs/traffic.*.log
processors:
Expand All @@ -41,6 +53,17 @@ processors:
- key: sumo.datasource
value: artifactory
action: insert
- key: _contentType
value: OpenTelemetry
action: insert
- key: _sourceCategory
value: otel/artifactory
action: insert
resource/artifactory_resource_attributes/logs/localhost:
attributes:
- key: _source
value: artifactory/filelog
action: insert
service:
pipelines:
logs/artifactory/localhost:
Expand All @@ -54,5 +77,6 @@ service:
- resource/artifactory_resource_attributes/localhost
- batch
- resourcedetection/system
- resource/artifactory_resource_attributes/logs/localhost
exporters:
- sumologic
12 changes: 12 additions & 0 deletions assets/conf.d/examples/cassandra.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ receivers:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
- type: copy
from: resource["log.file.path"]
to: resource["_sourceName"]
include:
- /var/log/cassandra/system.log
processors:
Expand All @@ -17,9 +20,17 @@ processors:
- key: sumo.datasource
value: cassandra
action: insert
- key: _contentType
value: OpenTelemetry
action: insert
- key: db.cluster.name
value: test
action: insert
resource/cassandra_resource_attributes/logs/localhost:
attributes:
- key: _source
value: cassandra/filelog
action: insert
service:
pipelines:
logs/cassandra/localhost:
Expand All @@ -30,5 +41,6 @@ service:
- resource/cassandra_resource_attributes/localhost
- batch
- resourcedetection/system
- resource/cassandra_resource_attributes/logs/localhost
exporters:
- sumologic
21 changes: 21 additions & 0 deletions assets/conf.d/examples/couchbase.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ receivers:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
- type: copy
from: resource["log.file.path"]
to: resource["_sourceName"]
include:
- /opt/couchbase/var/lib/couchbase/logs/audit.log
filelog/couchbase/error/localhost:
Expand All @@ -15,6 +18,9 @@ receivers:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
- type: copy
from: resource["log.file.path"]
to: resource["_sourceName"]
include:
- /opt/couchbase/var/lib/couchbase/logs/error.log
filelog/couchbase/access/localhost:
Expand All @@ -24,6 +30,9 @@ receivers:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
- type: copy
from: resource["log.file.path"]
to: resource["_sourceName"]
include:
- /opt/couchbase/var/lib/couchbase/logs/http_access.log
filelog/couchbase/query/localhost:
Expand All @@ -33,6 +42,9 @@ receivers:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
- type: copy
from: resource["log.file.path"]
to: resource["_sourceName"]
include:
- /opt/couchbase/var/lib/couchbase/logs/query.log
processors:
Expand All @@ -44,9 +56,17 @@ processors:
- key: sumo.datasource
value: couchbase
action: insert
- key: _contentType
value: OpenTelemetry
action: insert
- key: db.cluster.name
value: couchbaseOtelCluster
action: insert
resource/couchbase_resource_attributes/logs/localhost:
attributes:
- key: _source
value: couchbase/filelog
action: insert
service:
pipelines:
logs/couchbase/localhost:
Expand All @@ -58,6 +78,7 @@ service:
processors:
- memory_limiter
- resourcedetection/system
- resource/couchbase_resource_attributes/logs/localhost
- resource/couchbase_resource_attributes/localhost
- batch
exporters:
Expand Down
Loading

0 comments on commit fa70b2d

Please sign in to comment.