# Database Server artifacts
---
name: ElasticsearchAccessLog
doc: Location where Elasticsearch access logs are stored.
sources:
- type: FILE
  attributes: {paths: ['/var/log/elasticsearch/*_access.log']}
supported_os: [Linux]
---
name: ElasticsearchAuditLog
doc: Location where Elasticsearch audit logs are stored.
sources:
- type: FILE
  attributes:
    paths:
    - '/var/log/elasticsearch/*_audit.json'
    - '/var/log/elasticsearch/*_audit.log'
supported_os: [Linux]
urls: ['https://www.elastic.co/guide/en/elasticsearch/reference/current/audit-log-output.html']
---
name: ElasticsearchGCLog
doc: Location where Elasticsearch GC logs are stored.
sources:
- type: FILE
  attributes:
    paths:
    - '/var/log/elasticsearch/gc.log'
    - '/var/log/elasticsearch/gc.log.[0-9]'
supported_os: [Linux]
urls: ['https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#gc-logging']
---
name: ElasticsearchLogs
doc: Location where Elasticsearch logs are stored.
sources:
- type: FILE
  attributes:
    paths:
    - '/var/log/elasticsearch/*.log'
    - '/var/log/elasticsearch/*.json'
    - '/var/log/elasticsearch/*.json.gz'
supported_os: [Linux]
---
name: ElasticsearchServerLog
doc: Location where Elasticsearch server logs are stored.
sources:
- type: FILE
  attributes:
    paths:
    - '/var/log/elasticsearch/*_server.json'
    - '/var/log/elasticsearch/*-*.json'
    - '/var/log/elasticsearch/*-*.json.gz'
supported_os: [Linux]
urls: ['https://www.elastic.co/guide/en/elasticsearch/reference/current/logging.html#loggin-configuration']
---
name: MongoDBConfigurationFile
doc: MongoDB configuration file.
sources:
- type: FILE
  attributes:
    paths:
    - '/usr/local/etc/mongod.conf'
    - '/opt/homebrew/etc/mongod.conf'
  supported_os: [Darwin]
- type: FILE
  attributes:
    paths: ['/etc/mongod.conf']
  supported_os: [Linux]
supported_os: [Darwin, Linux]
urls: ['https://www.mongodb.com/docs/manual/reference/configuration-options/']
---
name: MongoDBDatabasePath
doc: MongoDB database Path.
sources:
- type: FILE
  attributes: {paths: ['/usr/local/var/mongodb/*']}
  supported_os: [Darwin]
- type: PATH
  attributes:
    paths:
    - '/data/db/*'
    - '/var/lib/mongo/*'
    - '/var/lib/mongodb/*'
  supported_os: [Linux]
- type: FILE
  attributes:
    paths: ['\data\db\*']
    separator: '\'
  supported_os: [Windows]
supported_os: [Darwin, Linux, Windows]
urls: ['https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-storage.dbPath']
---
name: MongoDBLogFiles
doc: MongoDB log files.
sources:
- type: FILE
  attributes: {paths: ['/var/log/mongodb/mongod.log*']}
supported_os: [Linux]
---
name: MySQLConfigurationFiles
doc: MySQL configuration files.
sources:
- type: FILE
  attributes:
    paths:
    - '/etc/my.cnf'
    - '/etc/mysql/mysql.conf.d/mysqld.cnf'
supported_os: [Linux]
---
name: MySQLDataDictionary
doc: MySQL data dictionary.
sources:
- type: FILE
  attributes: {paths: ['/var/lib/mysql/mysql.ibd']}
supported_os: [Linux]
urls: ['https://dev.mysql.com/doc/refman/8.0/en/data-dictionary-transactional-storage.html']
---
name: MySQLDataDirectory
doc: MySQL data directory.
sources:
- type: FILE
  attributes:
    paths:
    - '/var/lib/mysql/*'
    - '/var/lib/mysql/*/*'
supported_os: [Linux]
urls:
- 'https://dev.mysql.com/doc/refman/8.0/en/data-directory.html'
- 'https://dev.mysql.com/doc/refman/8.0/en/innodb-architecture.html'
---
name: MySQLLogFiles
doc: MySQL log files.
sources:
- type: FILE
  attributes:
    paths:
    - '/var/log/mysql/error.log*'
    - '/var/log/mysql.log*'
    - '/var/log/*.log*'
supported_os: [Linux]
---
name: OpenSearchLogFiles
doc: OpenSearch log files.
sources:
- type: FILE
  attributes:
    paths:
    - '/var/log/opensearch/*.log'
    - '/var/log/opensearch/*.json'
supported_os: [Linux]
urls: ['https://opensearch.org/docs/latest/opensearch/logs/']
---
name: PostgreSQLConfigurationFiles
doc: PostgreSQL configuration files.
sources:
- type: FILE
  attributes:
    paths:
    - '/etc/postgresql/*/*/postgresql.conf'
    - '/etc/postgresql/*/*/pg_hba.conf'
    - '/etc/postgresql/*/*/pg_ident.conf'
    - '/var/lib/pgsql/postgresql.conf'
    - '/var/lib/pgsql/pg_hba.conf'
    - '/var/lib/pgsql/pg_ident.conf'
    - '/var/lib/pgsql/data/postgresql.conf'
    - '/var/lib/pgsql/data/pg_hba.conf'
    - '/var/lib/pgsql/data/pg_ident.conf'
supported_os: [Linux]
urls:
- 'https://www.postgresql.org/docs/current/runtime-config-file-locations.html'
- 'https://docs.fedoraproject.org/en-US/quick-docs/postgresql/'
- 'https://wiki.debian.org/PostgreSql'
---
name: PostgreSQLDataDirectory
doc: PostgreSQL data directory.
sources:
- type: FILE
  attributes:
    paths:
    - '/var/lib/pgsql/data/*'
    - '/var/lib/pgsql/data-old/*'
    - '/var/lib/pgsql/*/*'
    - '/var/lib/postgresql/*/main/*/*'
supported_os: [Linux]
urls:
- 'https://www.postgresql.org/docs/current/storage-file-layout.html'
- 'https://docs.fedoraproject.org/en-US/quick-docs/postgresql/'
- 'https://wiki.debian.org/PostgreSql'
---
name: PostgreSQLLogFiles
doc: PostgreSQL log files.
sources:
- type: FILE
  attributes:
    paths:
    - '/var/log/postgresql/postgresql.log*'
    - '/var/log/postgresql/postgresql.csv*'
    - '/var/log/postgresql/postgresql-*.log*'
    - '/var/log/postgresql/postgresql-*.csv*'
    - '/var/log/postgresql/postgresql-*-*.log*'
    - '/var/log/postgresql/postgresql-*-*.csv*'
    - '/var/lib/pgsql/data/log/postgresql.log*'
    - '/var/lib/pgsql/data/log/postgresql.csv*'
    - '/var/lib/pgsql/data/log/postgresql-*.log*'
    - '/var/lib/pgsql/data/log/postgresql-*.csv*'
    - '/var/lib/pgsql/data/log/postgresql-*-*.log*'
    - '/var/lib/pgsql/data/log/postgresql-*-*.csv*'
supported_os: [Linux]
urls: ['https://www.postgresql.org/docs/14/runtime-config-logging.html']
---
name: RedisConfigurationFile
doc: Redis configuration files.
sources:
- type: FILE
  attributes:
    paths:
    - '/etc/redis/*'
    - '/etc/init.d/redis_*'
supported_os: [Linux]
---
name: RedisDataDirectory
doc: Redis Data Directory.
sources:
- type: FILE
  attributes:
    paths:
    - '/var/redis/*'
    - '/var/redis/*/*'
supported_os: [Linux]
---
name: RedisLogFiles
doc: Redis log files.
sources:
- type: FILE
  attributes:
    paths:
    - '/var/log/redis/redis*.log*'
    - '/var/log/redis*.log*'
supported_os: [Linux]
