Setting up a MongoDB log appender

We are going to log one copy of the data into the MongoDB present inside the Kaa Sandbox. For that, from the left menu, select Pi3-DHT11-App | Log appenders. Next, click on Add log appender and fill in the form as shown:

Field

Value

Name

Pi3-DHT11-MongoDB-Logger

Min schema version

1

Max schema version

Infinite

Confirm delivery

False

Log metadata

Select the following:

  • Endpoint key hash
  • Timestamp
  • Application token
  • Log schema version
  • Header version

Type

MongoDB

MongoDB nodes | Host

localhost

MongoDB nodes | Port

27017

Authentication credentials

--

MongoDB database name

kaa-pi3-dht11-data

Include client profile data

True

Include server ...

Get Enterprise Internet of Things Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.