category: Database provider: MongoDB Inc. fromversion: 5.0.0 commonfields: id: MongoDB Log version: -1 configuration: - display: MongoDB Username name: credentials required: true type: 9 - display: URI (mongodb://:) name: uri required: true type: 0 - display: Database Name name: database required: true type: 0 - defaultvalue: log display: Collection Name name: collection required: true type: 0 - display: Trust any certificate (not secure) name: insecure type: 8 required: false - defaultvalue: 'false' display: Use SSL/TLS secured connection name: use_ssl type: 8 required: false description: Writes log data to a MongoDB collection. display: MongoDB Log name: MongoDB Log script: commands: - arguments: - defaultValue: '50' description: The maximum number of logs to return. name: limit description: Returns all log entries. name: mongodb-read-log - arguments: - description: The playbook that was used. name: playbook - description: The assigned user. name: user - description: Entity to write to the log. name: id - description: The actions that were performed. name: action - description: Message for the entry. name: message description: Adds a log entry. name: mongodb-write-log outputs: - contextPath: MongoDB.Entry.Action description: The actions that were performed. type: String - contextPath: MongoDB.Entry.User description: Assigned analyst. type: String - contextPath: MongoDB.Entry.ID description: Entity to write to the log. type: String - contextPath: MongoDB.Entry.EntryID description: Entry ID. type: String - contextPath: MongoDB.Entry.Playbook description: The playbook that was used. type: String - contextPath: MongoDB.Entry.Timestamp description: Entry timestamp. type: Date - contextPath: MongoDB.Entry.Message description: The message of the entry. type: String - description: Returns the number of log entries. name: mongodb-logs-number dockerimage: demisto/py3-tools:1.0.0.114656 runonce: true script: '-' type: python subtype: python3 tests: - MongoDBLog - Test