Relevant telegraf.conf
[agent]
debug = true
[[inputs.cpu]]
interval = "30s"
percpu = false
totalcpu = true
collect_cpu_time = false
report_active = false
[[outputs.opensearch]]
urls = ["https://localhost:9200"]
template_name = "telegraf"
index_name = "telegraf-{{.Time.Format \"2006-01-02\"}}"
username = "admin"
password = "p4ssw0rd"
insecure_skip_verify = true
Logs from Telegraf
systemd[1]: Starting telegraf.service - Telegraf...
telegraf[556537]: 2026-04-23T08:29:59Z W! Strict environment variable handling is the new default starting with v1.38.0! If your configuration does not work with strict handling please explicitly add the --non-strict-env-handling flag to switch to the previous behavior!
telegraf[556537]: 2026-04-23T08:29:59Z I! Loading config: /etc/telegraf/telegraf.conf
telegraf[556537]: 2026-04-23T08:29:59Z W! DeprecationWarning: Option "ignore_protocol_stats" of plugin "inputs.net" deprecated since version 1.37.0 and will be removed in 1.45.0: option is ignored
telegraf[556537]: 2026-04-23T08:29:59Z W! Using disk-write-through buffer strategy for plugin outputs.opensearch, this is an experimental feature
telegraf[556537]: 2026-04-23T08:29:59Z I! Starting Telegraf 1.38.3 brought to you by InfluxData the makers of InfluxDB
telegraf[556537]: 2026-04-23T08:29:59Z I! Available plugins: 244 inputs, 9 aggregators, 35 processors, 26 parsers, 68 outputs, 8 secret-stores
telegraf[556537]: 2026-04-23T08:29:59Z I! Loaded inputs: cpu
telegraf[556537]: 2026-04-23T08:29:59Z I! Loaded aggregators:
telegraf[556537]: 2026-04-23T08:29:59Z I! Loaded processors:
telegraf[556537]: 2026-04-23T08:29:59Z I! Loaded secretstores:
telegraf[556537]: 2026-04-23T08:29:59Z I! Loaded outputs: opensearch
telegraf[556537]: 2026-04-23T08:29:59Z W! Deprecated inputs: 0 and 1 options
telegraf[556537]: 2026-04-23T08:29:59Z I! [agent] Config: Interval:30s, Quiet:false, Hostname:"", Flush Interval:30stelegraf[556537]: 2026-04-23T08:29:59Z W! [agent] The default value of 'skip_processors_after_aggregators' will change to 'true' with Telegraf v1.40.0! If you need the current default behavior, please explicitly set the option to 'false'!
telegraf[556537]: 2026-04-23T08:29:59Z D! [agent] Initializing plugins
telegraf[556537]: 2026-04-23T08:29:59Z D! [agent] Connecting outputs
telegraf[556537]: 2026-04-23T08:29:59Z D! [agent] Attempting connection to [outputs.opensearch]
systemd[1]: Started telegraf.service - Telegraf.
telegraf[556537]: 2026-04-23T08:29:59Z E! [agent] Failed to connect to [outputs.opensearch], retrying in 15s, error was "unable to ping OpenSearch server: dial tcp 127.0.0.1:9200: connect: connection refused"
telegraf[556537]: 2026-04-23T08:30:14Z E! [telegraf] Error running agent: connecting output outputs.opensearch: error connecting to output "outputs.opensearch": unable to ping OpenSearch server: dial tcp 127.0.0.1:9200: connect: connection refused Apr 23 10:30:14 ocean systemd[1]: telegraf.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: telegraf.service: Failed with result 'exit-code'.
systemd[1]: telegraf.service: Scheduled restart job, restart counter is at 1.
System info
Telegraf 1.38.3 (git: HEAD@b8487989), Ubuntu 24.04
Docker
No response
Steps to reproduce
- Some unreachable opensearch service (reproducable without a service)
- Start telegraf
- Telegraf fails to start because opensearch is not reachable
Expected behavior
Telegraf starts without crashing, log any attempted connects / pings.
Actual behavior
Telegraf won't start at all if openseach is not reachable.
Additional info
No response
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.38.3 (git: HEAD@b8487989), Ubuntu 24.04
Docker
No response
Steps to reproduce
Expected behavior
Telegraf starts without crashing, log any attempted connects / pings.
Actual behavior
Telegraf won't start at all if openseach is not reachable.
Additional info
No response