I am loading a data into ElasticSearch and later visualizing it in Kibana. However, the Kibana does not support nanosecond precision. As my file contains 900,000 lines, how do I iterate over it to accomplish following:
I want to preprocess the file in bash.
INPUT file1.csv:
2018-10-1711:54:59.4422378,OUTLOOK.EXE,12052,11316,Thread Profiling,Thread 11316,SUCCESS,User Time: 0.0000000; Kernel Time: 0.0000000; Context Switches: 3,company\username,0
EXPECTED OUTPUT file2.csv:
2018-10-1711:54:59.442,OUTLOOK.EXE,12052,11316,Thread Profiling,Thread 11316,SUCCESS,User Time: 0.0000000; Kernel Time: 0.0000000; Context Switches: 3,company\username,0
How to round up the date to 3 digits? I want to round up base on the 4th digit.eg. 4425000 = 442, 4426000 = 443