Overriding timestamp in logstash

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:

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

Any idea?

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