Troubleshooting
Why Telegraf kinesis_consumer data never reaches InfluxDB 2
Short answer
The write log proves one influxdb_v2 output accepted a batch, not that kinesis_consumer contributed to it. With namepass exe_* on bucket logs and namedrop exe_* on bucket logs2, an unprefixed Kinesis measurement belongs in logs2, beside the cpu and disk points. If it is absent there, the input is producing nothing: isolate it and check each record against the configured CSV contract.

On this page
A successful write line in the Telegraf log answers a different question than the one you asked: it proves one output delivered a batch, not that kinesis_consumer contributed a point to it. The two [[outputs.influxdb_v2]] blocks split traffic by measurement name: namepass = ["exe_*"] routes only prefixed measurements to bucket logs, and namedrop = ["exe_*"] routes everything else to bucket logs2. The Kinesis input sets no name_prefix, so whatever it produces belongs in logs2, beside the unprefixed cpu and disk measurements you can already see. Find the bucket that shows cpu; the Kinesis measurement must appear next to it, and its absence there means the input is producing nothing at all.
The write log proves delivery, not production #
The startup and first-flush lines rule out the entire write path:
Loaded inputs: cpu disk kinesis_consumer influxdb— all four plugins parsed and loaded. Loading is not reading: no line says a shard was opened or a record parsed.- Two
Successfully connected to outputs.influxdb_v2lines — both outputs reached the server and authenticated. Wrote batch of 10 metrics in 26.832907ms, printed ten seconds after start — one output flushed one interval of points.Buffer fullness: 0 / 10000 metrics— nothing queued, nothing waiting to retry.
Because cpu, disk and the exe_-prefixed internal series all arrive in InfluxDB, the server address, token, organization and both bucket paths work end to end. The write line names neither its bucket nor its contributing inputs — both outputs print under the same [outputs.influxdb_v2] prefix. A genuinely failing output looks different: flushes stop and the buffer climbs, the case walked through under Telegraf failed to send metrics to any configured server. Here the write path is healthy, so either the data went to a bucket that was not queried, or the input never produced it.
Trace the two bucket filters first #
Here is the relevant part of the config, addresses and credentials abridged:
[[outputs.influxdb_v2]]
urls = ["http://influxdb:8086"]
namedrop = ["exe_*"]
token = "$INFLUX_TOKEN"
organization = "org_name"
bucket = "logs2"
[[outputs.influxdb_v2]]
urls = ["http://influxdb:8086"]
namepass = ["exe_*"]
token = "$INFLUX_TOKEN"
organization = "org_name"
bucket = "logs"
[[inputs.kinesis_consumer]]
# region, access_key, secret_key and profile carry the stream's own credentials
streamname = "new_stream"
shard_iterator_type = "TRIM_HORIZON"
data_format = "csv"
csv_header_row_count = 1
csv_tag_columns = ["node", "operatorName", "type"]
csv_timestamp_column = "datetime"
csv_timestamp_format = "2006-01-02T15:04:05"
[[inputs.influxdb]]
urls = ["http://influxdb:8086/debug/vars"]
timeout = "5s"
name_prefix = "exe_"
Both outputs point at the same server, token and organization; only the filter and the bucket differ:
| Bucket | Filter | Points that pass |
|---|---|---|
logs |
namepass = ["exe_*"] |
measurement names beginning with exe_ only |
logs2 |
namedrop = ["exe_*"] |
every measurement name except those beginning with exe_ |
namepass and namedrop match the measurement name, never tag values — if that distinction has bitten you before, the difference between namepass and tagpass when filtering Telegraf metrics is worth the two minutes. [[inputs.influxdb]] sets name_prefix = "exe_", so its scraped series pass namepass and land in logs. [[inputs.kinesis_consumer]] sets no name_prefix, no name_override and no csv_name_column, so its points carry the input's own name, kinesis_consumer. That name does not begin with exe_, so namedrop lets it through: the data belongs in logs2, the same bucket already holding your cpu and disk points.
That gives you a one-query verdict:
- You were watching
logs— the data may have been inlogs2the whole time. cpupoints sit inlogs2andkinesis_consumerpoints are absent in the same time range — the path to that bucket is proven and the input produced zero points. Go to the isolation test.
Isolate kinesis_consumer in four moves #
- Comment out
[[inputs.cpu]],[[inputs.disk]]and[[inputs.influxdb]], keep only the Kinesis input and the two outputs, restart, and watch withdebug = true. From now on any write line can only contain Kinesis points. - Read the debug stream for lines naming
kinesis_consumer: credential and region errors, shard problems and parser rejections all print here. - Give it three flushes (30 seconds at this agent timing). If the log stays clean and no batch appears, comment out one output block and delete the remaining filter, so a single unfiltered output writes everything to one bucket and routing drops out of the picture entirely.
- The moment a point lands, read its measurement name in the bucket, then restore the second output and both filters around that name.
Stripping the config to the suspect input, reading its own debug lines, then rebuilding is the same sequence an MQTT consumer that connects but writes no data to InfluxDB needs — a connected service input can still produce nothing.
Check every record against the CSV contract #
kinesis_consumer hands each record's payload to the parser separately, so the contract applies per record, not per stream:
csv_header_row_count = 1— every record's payload must contain the header row the parser is told to skip. A producer that writes the header once and then bare data rows has each record parsed as header-only, which yields no point.csv_tag_columns = ["node", "operatorName", "type"]— these three columns become tags; the rest become fields, and each data row must carry exactly as many values as the header declares.csv_timestamp_column = "datetime"withcsv_timestamp_format = "2006-01-02T15:04:05"— the layout is Go's reference time:2006the year,01the month,02the day, a literalT,15the hour on a 24-hour clock,04the minute,05the second, and no zone. A record whose datetime value deviates from that shape is dropped, and with debug on the parser logs each rejection.
The Telegraf CSV parser documentation defines exactly these option names, so the config itself is well formed; the open question is whether the stream's bytes match it. A file that received the same rows proves the producer emits data — it does not prove the rows satisfy the layout, and one changed separator or timestamp shape drops every point while the write log keeps looking healthy.
Reading a 10-metric batch at a 10 s flush #
Inputs, each taken from the running config or its log:
- Collection interval: 10 s, from the agent's startup line
Interval:10s. - Flush interval: 10 s, from
Flush Interval:10son the same line. - Batch size per flush: 10 metrics, from the
Wrote batchline. - Buffer after each flush: 0 of 10000 metrics, from the
Buffer fullnessline. - Routing:
namepass = ["exe_*"]tologs,namedrop = ["exe_*"]tologs2, from the two output blocks. - Watch window: 5 min, your own choice of observation time.
The rule in words: the interval-driven inputs — cpu, disk and the internal scrape — contribute the same points every flush, while kinesis_consumer emits as records arrive and its points ride the next flush. Each output writes its own batch of the points its filter passed, both lines share one prefix, so read sizes rather than names. A Kinesis input producing one point per interval must therefore grow exactly one batch — the one headed for logs2 — by one metric every flush.
The arithmetic, assuming the input produces one point per interval:
- Flushes per minute: 60 s ÷ 10 s = 6.
- Flushes in the window: 6 × 5 = 30.
- Batch size with production: 10 + 1 = 11 metrics in that flush's
logs2line. - Kinesis points added to the bucket over the window: 30 × 1 = 30.
Result: across 30 flushes every logged batch stays at 10 metrics and the bucket gains 0 Kinesis points, while the buffer holds 0 of 10000. No batch ever carried a Kinesis point: the input produced nothing during the window.
Decision: batch sizes frozen for 30 flushes — 5 minutes at this flush interval — while the bucket gains nothing ends the bucket search; move to the isolation list and the CSV contract. A batch that grows while the bucket still gains nothing moves the fault to that output's write path, and its own log lines name it.
Treat the version change as a comparison test #
The reported agent is Telegraf 1.15.3. The server is identified only by its container image, so the exact InfluxDB release is unrecorded — read it from the image tag or the server's health endpoint before comparing anything. The pair to test is InfluxDB 2.0.2 with Telegraf 1.16.3, the current releases when this behavior was reported; fixes had landed after the release-candidate images that such a container tag may still point to. Run the isolated single-input config on that pair and compare results: a behavior change pins a version defect, an identical empty result clears the versions and points back at the stream contents and the CSV contract. The upgrade alone proves nothing — only the before-and-after run does.
The decision for each case #
- The
kinesis_consumermeasurement sits inlogs2besidecpu— nothing is broken; the earlier queries simply watched the wrong bucket. cpupoints are present but no Kinesis points appear in the same range, and the batch sizes never change — the input produces nothing: work credentials, region and stream name first, then the per-record contract.- The debug log shows parser rejections — the rows exist but break the header rule or the timestamp layout; align the producer or the
csv_*options with the actual bytes, then re-run the count. - A batch grows while the bucket gains nothing — the input is fine and that one output's write path is at fault.
In every branch the write log was never the evidence you needed: it certified delivery of other inputs' points while the Kinesis input stayed silent.
Questions asked
Which InfluxDB bucket receives the kinesis_consumer measurement?
Bucket logs2. The input sets no name_prefix, name_override or csv_name_column, so its points carry the name kinesis_consumer, and namedrop passes that name because it does not begin with exe_. To land the data in bucket logs instead, give the input a name_prefix of exe_ or a dedicated name_override, and the namepass filter will accept it.
Can TRIM_HORIZON explain why no current data appears?
Temporarily, yes. TRIM_HORIZON starts at the oldest record the stream still retains, so on a long-lived stream the input works through the backlog before it reaches current records, and on an empty stream it yields nothing at all. Switching shard_iterator_type to LATEST shows within one flush whether current traffic is being produced and parsed.
Which timestamp strings match the layout 2006-01-02T15:04:05?
Only strings shaped like 2020-11-27T09:33:21: a four-digit year, two-digit month and day, a literal T, then the hour on a 24-hour clock, minutes and seconds, with no zone. A space instead of the T, a fractional second or a trailing Z fails the layout, and because the parser runs per record, one producer change can drop every point while the write log stays healthy.
Does one Wrote batch line per flush mean only one output wrote?
No. Each output writes and logs its own batch, and both outputs here print under the same prefix, so a single line identifies neither the bucket nor the output. Count the lines across several flushes: two per flush means both filters passed points and both buckets were served, one per flush means the other output found nothing matching to write.


