Overriding timestamp in logstash

Hi
on logstash need to override timestamp, here is the scenario input file, output as http.

here is the string must be send via “http output”:
mymeasure,tag=mytag field="myfield" 1689682934

FYI: this part "1689682934" is timestamp.

now question is how can i extract date from filename, and time from log line and create epoch time format like 1689682934 and put in end of line.

here is file name:
/tmp/log.cus.20230720

here is log line:
00:00:13.441 cus module: A[srv1]B[551]C[000]

expected timestamp
20230720 00:00:13.441

expected timestamp in epochtime format
1689682934

Any idea?
Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.