Hello,
I'm using log file monitoring. The log file is an .txt file on the C:\ drive.
Collecting the log file lines is working fine. But how do i grab specific data automatically from each line and put it in an item?
For example one line looks like this:
2022-10-26 14:02:59,319 [7] INFO [TerminalPlugin (ID=3)] OnSaleResult : Transaction Succeed : Payment - Amount:20
I was able to use the Log Time format yyyy-MM-dd hh:mm:ss to collect the timestamp. But the original timestamp stays in the collected line. How do i remove the timestap in the data?
I also would like to grab data in the line. For example:
item A = the value of amount which is 20
item B = ID=3
I'm using log file monitoring. The log file is an .txt file on the C:\ drive.
Collecting the log file lines is working fine. But how do i grab specific data automatically from each line and put it in an item?
For example one line looks like this:
2022-10-26 14:02:59,319 [7] INFO [TerminalPlugin (ID=3)] OnSaleResult : Transaction Succeed : Payment - Amount:20
I was able to use the Log Time format yyyy-MM-dd hh:mm:ss to collect the timestamp. But the original timestamp stays in the collected line. How do i remove the timestap in the data?
I also would like to grab data in the line. For example:
item A = the value of amount which is 20
item B = ID=3
Comment