Hi,
I have been trying to implement to read csv file from local system and push the output to InfluxDB. But getting some error.
I appreciate if someone could help me in resolving this issue.
Thanks,
Manju
Configuration details:
[[inputs.file]]
files = [“/apps/sftp-ein/palladion-1712041200-22389.csv”]
data_format = “csv”
csv_delimiter = “;”
csv_header_row_count = 1
csv_tag_columns = [“uid”,“state_details”]
csv_measurement_column = “measurement”
csv_timestamp_format = “2006-01-02T15:04:05Z07:00”
Error:
[root@sandmonitor telegraf.d]# telegraf --config telegraf_cdr.conf
2024-05-02T11:47:19Z I! Starting Telegraf 1.23.3
2024-05-02T11:47:19Z I! Loaded inputs: cpu disk diskio file kernel mem processes swap system
2024-05-02T11:47:19Z I! Loaded aggregators:
2024-05-02T11:47:19Z I! Loaded processors:
2024-05-02T11:47:19Z I! Loaded outputs: influxdb influxdb_v2
2024-05-02T11:47:19Z I! Tags enabled: host=sandmonitor
2024-05-02T11:47:19Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:“sandmonitor”, Flush Interval:10s
2024-05-02T11:47:19Z W! [outputs.influxdb] When writing to [http://localhost:8086]: database “telegraf” creation failed: 401 Unauthorized
2024-05-02T11:47:21Z E! [outputs.influxdb] E! [outputs.influxdb] Failed to write metric (will be dropped: 401 Unauthorized):
2024-05-02T11:47:21Z W! [outputs.influxdb] Metric buffer overflow; 762 metrics have been dropped
2024-05-02T11:47:21Z E! [outputs.influxdb] E! [outputs.influxdb] Failed to write metric (will be dropped: 401 Unauthorized):
2024-05-02T11:47:21Z W! [outputs.influxdb] Metric buffer overflow; 4635 metrics have been dropped
2024-05-02T11:47:21Z E! [outputs.influxdb_v2] Failed to write metric to cdr (will be dropped: 422 Unprocessable Entity): unprocessable entity: failure writing points to database: partial write: field type conflict: input field “init_devs” on measurement “file” is type string, already exists as type integer dropped=835
2024-05-02T11:47:21Z W! [outputs.influxdb_v2] Metric buffer overflow; 6934 metrics have been dropped
2024-05-02T11:47:21Z E! [outputs.influxdb] E! [outputs.influxdb] Failed to write metric (will be dropped: 401 Unauthorized):
2024-05-02T11:47:21Z W! [outputs.influxdb] Metric buffer overflow; 11644 metrics have been dropped
2024-05-02T11:47:21Z E! [outputs.influxdb] E! [outputs.influxdb] Failed to write metric (will be dropped: 401 Unauthorized):
2024-05-02T11:47:21Z E! [outputs.influxdb_v2] Failed to write metric to cdr (will be dropped: 422 Unprocessable Entity): unprocessable entity: failure writing points to database: partial write: field type conflict: input field “ingress_devs” on measurement “file” is type integer, already exists as type string dropped=911
2024-05-02T11:47:21Z W! [outputs.influxdb_v2] Metric buffer overflow; 11107 metrics have been dropped
Actual Raw File: