Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel2
typeflat

...

Valid tags and data tables

The full tag must can have 4 6 levels. The first two are fixed as db.mongodb. The third level identifies the type of events sent, and the fourth level indicates the event subtype. 

Technology

Brand

Type

Subtype

db

mongodb

out

vappvenv

These are the valid tags and corresponding data tables that will receive the parsers' data:

Tag

Data table

db.mongodb.out.venv.vapp.vclonedb.mongodb.out

Log samples

The following are sample logs sent to each of the<technologydb.brand>mongodb data tables. Also, find how the information will be parsed in your data table under each sample log.

Note
titleExtra columns

Fields marked as Extra in the table below are not shown by default in data tables and need to be explicitly requested in the query. You can find them marked as Extra when you perform a query so they can be easily identified. Learn more about this in Selecting unrevealed columns.

db.mongodb.out

Code Block
2021-12-15 17:12:11.052 2018-emea-0259.local=127.0.0.1 db.mongodb.out.venv.vapp.vclone: 2021-12-09T00:17:01.681+0000 I CONTROL [signalProcessingThread] Replica Set Config: { _id: "logtrust", version: 3, protocolVersion: 1, members: [ { _id: 0, host: "127.0.0.1:27017", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 }, { _id: 1, host: "127.0.0.1:27017", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 }, { _id: 2, host: "127.0.0.1:27017", arbiterOnly: true, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 } ], settings: { chainingAllowed: true, heartbeatIntervalMillis: 2000, heartbeatTimeoutSecs: 10, electionTimeoutMillis: 10000, catchUpTimeoutMillis: 60000, getLastErrorModes: {}, getLastErrorDefaults: { w: 1, wtimeout: 0 }, replicaSetId: ObjectId(\'5c379794f63d3c454\') } }
2021-12-15 17:12:11.055 2018-emea-0259.local=127.0.0.1 db.mongodb.out.venv.vapp.vclone: 2021-12-09T00:17:01.681+0000 I CONTROL [signalProcessingThread] db version v3.4.18
2021-12-15 17:12:11.062 2018-emea-0259.local=127.0.0.1 db.mongodb.out.venv.vapp.vclone: 2021-12-09T00:17:01.681+0000 I CONTROL [signalProcessingThread] options: { config: "/bin/arrive.mp3", net: { bindIp: "201.122.17.197", http: { enabled: false }, ipv6: false, maxIncomingConnections: 65536, port: 27017 }, processManagement: { fork: false }, replication: { oplogSizeMB: 1024, replSetName: "logtrust" }, security: { authorization: "enabled", keyFile: "/opt/anything/cost/crime/continue.ppt-keyfile" }, storage: { dbPath: "/bin/cuba/meeting.flac", directoryPerDB: false, engine: "wiredTiger", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, logRotate: "rename", path: "/dev/wonder/economy/light.doc" } }
2021-12-15 17:12:11.069 2018-emea-0259.local=127.0.0.1 db.mongodb.out.venv.vapp.vclone: 2021-12-10T02:00:00.111+0000 I COMMAND [conn3286] command oauth2.tokens command: aggregate { aggregate: "tokens", pipeline: [ { $project: { id: "$_id", token: "$access_token", date: "$creation_date", expire: "$expires_in", expiredTime: { $add: [ "$creation_date", "$expires_in" ] } } }, { $match: { date: { $exists: true }, expire: { $gt: 0 }, expiredTime: { $lt: 1639101600 } } } ], cursor: { batchSize: 2147483647 } } planSummary: COLLSCAN keysExamined:0 docsExamined:39764 cursorExhausted:1 numYields:312 nreturned:0 reslen:101 locks:{ Global: { acquireCount: { r: 638 } }, Database: { acquireCount: { r: 319 } }, Collection: { acquireCount: { r: 318 } } } protocol:op_query 110ms

And this is how the log would be parsed:

Field

Value

Type

Source field name

Extra fields

application

vapp

str

vapp


clone

vclone

str

vclone


components

CONTROL

str



context

signalProcessingThread

str



environment

venv

str

venv


eventdate

2021-12-15 17:12:11.052

timestamp



hostchain

2018-emea-0259.local=127.0.0.1

str


hostname

2018-emea-0259.local

str



log_message

Replica Set Config: { _id: "logtrust", version: 3, protocolVersion: 1, members: [ { _id: 0, host: "127.0.0.1:27017", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 }, { _id: 1, host: "127.0.0.1:27017", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 }, { _id: 2, host: "127.0.0.1:27017", arbiterOnly: true, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 } ], settings: { chainingAllowed: true, heartbeatIntervalMillis: 2000, heartbeatTimeoutSecs: 10, electionTimeoutMillis: 10000, catchUpTimeoutMillis: 60000, getLastErrorModes: {}, getLastErrorDefaults: { w: 1, wtimeout: 0 }, replicaSetId: ObjectId(\'5c379892e302794f63d3c454\') } }

str



rawMessage

2021-12-09T00:17:01.681+0000 I CONTROL [signalProcessingThread] Replica Set Config: { _id: "logtrust", version: 3, protocolVersion: 1, members: [ { _id: 0, host: "127.0.0.1:27017", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 }, { _id: 1, host: "127.0.0.1:27017", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 }, { _id: 2, host: "127.0.0.1:27017", arbiterOnly: true, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 } ], settings: { chainingAllowed: true, heartbeatIntervalMillis: 2000, heartbeatTimeoutSecs: 10, electionTimeoutMillis: 10000, catchUpTimeoutMillis: 60000, getLastErrorModes: {}, getLastErrorDefaults: { w: 1, wtimeout: 0 }, replicaSetId: ObjectId(\'5c379894f63d3c454\') } }

str


serverdate

2021-12-09 00:17:01.681

timestamp



severity_level

I

str



tag

db.mongodb.out.venv.vapp.vclone

str