﻿---
title: MongoDB fields
description: Module for parsing MongoDB log files. Fields from MongoDB logs. Contains fields from MongoDB logs. 
url: https://www.elastic.co/elastic/docs-builder/docs/3002/reference/beats/filebeat/exported-fields-mongodb
products:
  - Beats
  - Filebeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# MongoDB fields
Module for parsing MongoDB log files.

## mongodb

Fields from MongoDB logs.

## log

Contains fields from MongoDB logs.
<definitions>
  <definition term="mongodb.log.component">
    Functional categorization of message
    type: keyword
    example: COMMAND
  </definition>
  <definition term="mongodb.log.context">
    Context of message
    type: keyword
    example: initandlisten
  </definition>
  <definition term="mongodb.log.severity">
    type: alias
    alias to: log.level
  </definition>
  <definition term="mongodb.log.message">
    type: alias
    alias to: message
  </definition>
  <definition term="mongodb.log.id">
    Integer representing the unique identifier of the log statement
    type: long
    example: 4615611
  </definition>
</definitions>