I am reading the data from kinesis and inserting it into the Telegraf. Data is coming in Telegraf and this data going in Influxb. The timestamp is being added automatically. I already have date and time column in my data. I want to insert the timestamp based on my date and time which is present in my data.
I tried adding based on my date and time but it’s not happening. Its always adding the current timestamp.
Below is the configuration I am using.
[[outputs.influxdb]]
urls = [“influxdb:8086”]
#urls = [“http://localhost:8086”]
database = “telegraf”
[[inputs.file]]
data_format = "csv"
csv_header_row_count = 1
csv_tag_columns = ["ver","node"]
csv_timestamp_column = ["date","time"]// want to add this as my timestamp
csv_timestamp_format = "2006-01-02T15:04:05"
Kinesis consumer configuration in telegraf.conf file
[[inputs.kinesis_consumer]]
region = "provided"
access_key ="provided"
secret_key = "provided"
profile = "provided"
streamname = "telegraf_stream4"
shard_iterator_type = "TRIM_HORIZON"
name_override = "OM_file"
data_format = "csv"
csv_header_row_count = 1
csv_tag_columns = ["ver","node"]
csv_timestamp_column = ["date","time"]
csv_timestamp_format = "2006-01-02T15:04:05"