Closed jonathanwvd closed 2 years ago
Hello! I recommend posting this question in our Community Slack or Community Page, we have a lot of talented community members there who could help answer your question more quickly. Heads up, this issue will be automatically closed after 7 days of inactivity. Thank you!
Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Page. Thank you!
Relevant telegraf.conf
Logs from Telegraf
2022-02-22T17:18:32Z I! Starting Telegraf 1.21.4 2022-02-22T17:18:32Z I! Using config file: /home/jonat/.telegraf/telegraf.conf 2022-02-22T17:18:32Z I! Loaded inputs: opcua 2022-02-22T17:18:32Z I! Loaded aggregators: 2022-02-22T17:18:32Z I! Loaded processors: 2022-02-22T17:18:32Z I! Loaded outputs: timestream 2022-02-22T17:18:32Z I! Tags enabled: host=jonat-Inspiron-7460 2022-02-22T17:18:32Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"jonat-Inspiron-7460", Flush Interval:10s 2022-02-22T17:18:32Z D! [agent] Initializing plugins 2022-02-22T17:18:32Z W! [inputs.opcua] Failed to load certificate: open /etc/telegraf/cert.pem: no such file or directory 2022-02-22T17:18:32Z D! [agent] Connecting outputs 2022-02-22T17:18:32Z D! [agent] Attempting connection to [outputs.timestream] 2022-02-22T17:18:32Z I! [outputs.timestream] Constructing Timestream client for 'multi-table' mode 2022-02-22T17:18:32Z D! [agent] Successfully connected to outputs.timestream 2022-02-22T17:18:32Z D! [agent] Starting service inputs 2022-02-22T17:18:42Z D! [outputs.timestream] Writing to Timestream: '&{0xc000d2c520 [{[{0xc000d2c480 0xc000d2c490 {}} {0xc000d2c4a0 0xc000d2c4b0 {}}] 0xc000d2c4c0 0xc000d2c4d0 DOUBLE 0xc000d2c4e0 SECONDS 0 {}} {[{0xc000d2c480 0xc000d2c490 {}} {0xc000d2c4a0 0xc000d2c4b0 {}}] 0xc000d2c4f0 0xc000d2c500 VARCHAR 0xc000d2c510 SECONDS 0 {}} {[{0xc000d2c540 0xc000d2c550 {}} {0xc000d2c560 0xc000d2c570 {}}] 0xc000d2c580 0xc000d2c590 DOUBLE 0xc000d2c5a0 SECONDS 0 {}} {[{0xc000d2c540 0xc000d2c550 {}} {0xc000d2c560 0xc000d2c570 {}}] 0xc000d2c5b0 0xc000d2c5c0 VARCHAR 0xc000d2c5d0 SECONDS 0 {}}] 0xc000d2c530 0xc00047e8a0 {}}' with ResourceNotFoundRetry: 'true' 2022-02-22T17:18:44Z E! [outputs.timestream] Failed to write to Timestream database 'HeronDB' table 'opcua_read'. Skipping metric! Error: 'operation error Timestream Write: WriteRecords, https response error StatusCode: 400, RequestID: 626FPAG5WFKZIC4YDWZY4N3AXM, ValidationException: ' 2022-02-22T17:18:44Z I! [outputs.timestream] ##WriteToTimestream - Metrics size: 2 request size: 1 time(ms): 2473 2022-02-22T17:18:44Z D! [outputs.timestream] Wrote batch of 2 metrics in 2.474076834s 2022-02-22T17:18:44Z D! [outputs.timestream] Buffer fullness: 0 / 10000 metrics
System info
Telegraf 1.21.4, Ubuntu 20.04.3 LTS
Docker
No response
Steps to reproduce
Expected behavior
Write data to a table in a Timestream DB.
Actual behavior
I get a incomplete error message:
2022-02-22T17:18:44Z E! [outputs.timestream] Failed to write to Timestream database 'HeronDB' table 'opcua_read'. Skipping metric! Error: 'operation error Timestream Write: WriteRecords, https response error StatusCode: 400, RequestID: 626FPAG5WFKZIC4YDWZY4N3AXM, ValidationException: '
Additional info
I'm using opcua input to collect data from an OUC-UA server. The connection is successful and I can see that the data has been collected
I'm trying to use timestream output to save this data to a Timestream database but I'm getting the following error where I can't see the validation exception:
2022-02-22T17:18:44Z E! [outputs.timestream] Failed to write to Timestream database 'HeronDB' table 'opcua_read'. Skipping metric! Error: 'operation error Timestream Write: WriteRecords, https response error StatusCode: 400, RequestID: 626FPAG5WFKZIC4YDWZY4N3AXM, ValidationException: '
I was able to save the input.cpu data to the Timestream following the example on the aws website.
Could someone help me with this issue?