Hi everyone,
I retrieved a log file that look like this :
2019-03-07 04:35:57.421 19EC | INFO TIMEDATA.DLL: Capacity allocated: Hashtable entries 20648881, Heap mem 805306368
2019-03-07 04:35:57.421 19EC | INFO DPREAD: Data import started: 07.03.19 04:35:57
2019-03-07 04:35:57.421 19EC | INFO DPREAD: Importing file: C:\path\to\file1
2019-03-07 04:35:57.452 19EC | INFO DPREAD: Completed importing file: C:\path\to\file1
2019-03-07 04:35:57.452 19EC | INFO DPREAD: Importing file: C:\path\to\file2
2019-03-07 04:36:43.545 19EC | INFO DPREAD: Completed importing file: C:\path\to\file2
2019-03-07 05:38:55.332 19EC | INFO TMDPDATA-INIT: Datasupply info: vwdpm.dcsDefault.2.0
2019-03-07 06:40:50.421 19EC | INFO DPREAD: Importing file: C:\path\to\file1
2019-03-07 06:40:55.452 19EC | INFO DPREAD: Completed importing file: C:\path\to\file1
What i want to do is to calculate the difference between the time of "Importing file: C:\path\to\file1" and "Completed importing file: C:\path\to\file1".
There are 2 sets matching this criteria in the log file and I want Elapsed time for both sets.
I used Logstash filter (aggregate and elapsed) but able to retrieve time only for 1 set.
Could someone help me on this?