# How to Write Logs Directly to InfluxDB: A Complete Guide

DevFeed: [How to Write Logs Directly to InfluxDB: A Complete Guide](<https://devfeed.tech/articles/how-to-write-logs-directly-to-influxdb-a-complete-guide-86948.md>)

Original publisher: [Read original article](<https://www.influxdata.com/blog/writing-logs-directly-to-influxdb/>)

Author: Noah Crowley (InfluxData)

Published: 2026-10-05T11:35:00Z

Content type: tutorial

Language: en

Sources: [InfluxData](<https://devfeed.tech/sources/influxdata.md>)

Topics: [telemetry](<https://devfeed.tech/topics/telemetry.md>), [Grafana](<https://devfeed.tech/topics/grafana.md>), [Structured-data](<https://devfeed.tech/topics/structured-data.md>)

Tags: [debugging](<https://devfeed.tech/tags/debugging.md>), [developer](<https://devfeed.tech/tags/developer.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [influxdb](<https://devfeed.tech/tags/influxdb.md>), [logs](<https://devfeed.tech/tags/logs.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [product](<https://devfeed.tech/tags/product.md>), [use-cases](<https://devfeed.tech/tags/use-cases.md>)

## AI overview

The article explains how to write syslog-shaped log points directly to InfluxDB so they appear in Chronograf's Log Viewer, without running syslog or the Telegraf plugin. It describes the expected schema, gives line protocol examples, and recommends batching points to avoid overwhelming the database with individual HTTP requests.

## Source excerpt

Back in June, we published a blog on our "metrics-first" approach to log analysis; we had found that just over a quarter of our users were already using the InfluxData platform for storing logs and non-numerical events. We consider logs to be just another form of time series data, and so we wanted to give those users better tools for ingesting and viewing that data. At the end of the day, logs are extremely valuable for debugging and troubleshooting; they provide detailed insight into the goings-on of your systems, and let you explore problems in ways that predefined dashboards don't allow. We released a plugin for Telegraf that allows you to ingest logs using the syslog protocol, which was based on work we were doing internally, and then back in July, we added log viewing functionality to Chronograf. If you're interested in getting rsyslog and the Telegraf plugin up and running on macOS or Linux, you should check out the Get Your Syslog On blog post. Once you start writing data, you'll be able to explore it through the Log Viewer panel in Chronograf. Not everyone wants to run a syslog instance, however, and we've gotten a few questions here and there about how to write logs directly to InfluxDB so that they can be viewed in Chronograf, but without using syslog or the Telegraf plugin. Good news! This is totally possible! First, let's dig a little deeper into the implementation so we can understand what's really going on. The first thing to understand is that syslog is a protocol; it describes how messages should be formatted and transmitted. This is described in RFC5424 - The Syslog Protocol. Part of that specification includes details on how to use structured data in your logs, which we strongly encourage! When you're using syslog and Telegraf, the latter is responsible for accepting messages in syslog format and converting them to line protocol to be written to InfluxDB. It inserts all syslog messages into a measurement called syslog, which is what Chronograf look