View Single Post
  #528  
Old 11-28-2024, 01:24 PM
DeathsSilkyMist DeathsSilkyMist is offline
Planar Protector

DeathsSilkyMist's Avatar

Join Date: Jan 2014
Posts: 7,249
Default

Quote:
Originally Posted by Jimjam [You must be logged in to view images. Log in or Register.]
DSM can you post the code of the script or tool you are using to cleanse / count log file data? I'm very interested in taking a look and trying it out.
Ah I did find the Javascript, I posted it before:

Quote:
Originally Posted by DeathsSilkyMist [You must be logged in to view images. Log in or Register.]

Here is a very simple example that you can code yourself and run in browser using https://playcode.io/javascript (Check the console result) when doing damage aggregation:

 

var array =
[
"[Sun Aug 21 07:32:14 2022] Wickedsteal pierces froglok bok wizard for 22",
"[Sun Aug 21 07:32:14 2022] Wickedsteal pierces froglok bok wizard for 41",
"[Sun Aug 21 07:32:16 2022] Wickedsteal pierces froglok bok wizard for 23",
"[Sun Aug 21 07:32:17 2022] Wickedsteal pierces froglok bok wizard for 62",
"[Sun Aug 21 07:32:19 2022] Wickedsteal pierces froglok bok wizard for 26",
"[Sun Aug 21 07:32:19 2022] Wickedsteal pierces froglok bok wizard for 16",
"[Sun Aug 21 07:32:19 2022] Wickedsteal pierces froglok bok wizard for 73",
"[Sun Aug 21 07:32:22 2022] Wickedsteal pierces froglok bok wizard for 31",
"[Sun Aug 21 07:32:22 2022] Wickedsteal pierces froglok bok wizard for 88",
"[Sun Aug 21 07:32:23 2022] Wickedsteal pierces froglok bok wizard for 78",
"[Sun Aug 21 07:32:24 2022] Wickedsteal pierces froglok bok wizard for 84",
"[Sun Aug 21 07:32:24 2022] Wickedsteal pierces froglok bok wizard for 26",
"[Sun Aug 21 07:32:26 2022] Wickedsteal pierces froglok bok wizard for 27",
"[Sun Aug 21 07:32:27 2022] Wickedsteal pierces froglok bok wizard for 25",
"[Sun Aug 21 07:32:28 2022] Wickedsteal pierces froglok bok wizard for 68",
"[Sun Aug 21 07:32:29 2022] Wickedsteal pierces froglok bok wizard for 54",
"[Sun Aug 21 07:32:31 2022] Wickedsteal pierces froglok bok wizard for 17",
"[Sun Aug 21 07:32:32 2022] Wickedsteal pierces froglok bok wizard for 70",
"[Sun Aug 21 07:32:34 2022] Wickedsteal pierces froglok bok wizard for 54",
"[Sun Aug 21 07:32:34 2022] Wickedsteal pierces froglok bok wizard for 78",
"[Sun Aug 21 07:32:36 2022] Wickedsteal pierces froglok bok wizard for 40",
"[Sun Aug 21 07:32:36 2022] Wickedsteal pierces froglok bok wizard for 41",
"[Sun Aug 21 07:32:37 2022] Wickedsteal pierces froglok bok wizard for 96",
"[Sun Aug 21 07:32:37 2022] Wickedsteal pierces froglok bok wizard for 70",
"[Sun Aug 21 07:32:38 2022] Wickedsteal pierces froglok bok wizard for 22",
"[Sun Aug 21 07:32:40 2022] Wickedsteal pierces froglok bok wizard for 26",
"[Sun Aug 21 07:32:41 2022] Wickedsteal pierces froglok bok wizard for 41",
"[Sun Aug 21 07:32:41 2022] Wickedsteal pierces froglok bok wizard for 59",
"[Sun Aug 21 07:32:42 2022] Wickedsteal pierces froglok bok wizard for 62",
"[Sun Aug 21 07:32:42 2022] Wickedsteal pierces froglok bok wizard for 41",
"[Sun Aug 21 07:32:43 2022] Wickedsteal pierces froglok bok wizard for 14",
"[Sun Aug 21 07:32:43 2022] Wickedsteal pierces froglok bok wizard for 61",
"[Sun Aug 21 07:32:43 2022] Wickedsteal pierces froglok bok wizard for 25",
"[Sun Aug 21 07:32:44 2022] Wickedsteal pierces froglok bok wizard for 14",
"[Sun Aug 21 07:32:45 2022] Wickedsteal pierces froglok bok wizard for 41",
"[Sun Aug 21 07:32:45 2022] Wickedsteal pierces froglok bok wizard for 64",
"[Sun Aug 21 07:32:45 2022] Wickedsteal pierces froglok bok wizard for 20",
"[Sun Aug 21 07:32:46 2022] Wickedsteal pierces froglok bok wizard for 21",
"[Sun Aug 21 07:32:46 2022] Wickedsteal pierces froglok bok wizard for 41",
"[Sun Aug 21 07:32:46 2022] Wickedsteal pierces froglok bok wizard for 8",
"[Sun Aug 21 07:32:47 2022] Wickedsteal pierces froglok bok wizard for 37",
"[Sun Aug 21 07:32:48 2022] Wickedsteal pierces froglok bok wizard for 9",
"[Sun Aug 21 07:32:48 2022] Wickedsteal pierces froglok bok wizard for 5",
"[Sun Aug 21 07:32:48 2022] Wickedsteal pierces froglok bok wizard for 20",
"[Sun Aug 21 07:32:49 2022] Wickedsteal pierces froglok bok wizard for 28",
"[Sun Aug 21 07:32:50 2022] Wickedsteal pierces froglok bok wizard for 74",
"[Sun Aug 21 07:32:50 2022] Wickedsteal pierces froglok bok wizard for 11",
"[Sun Aug 21 07:32:51 2022] Wickedsteal pierces froglok bok wizard for 55",
"[Sun Aug 21 07:32:51 2022] Wickedsteal pierces froglok bok wizard for 65",
"[Sun Aug 21 07:32:55 2022] Wickedsteal pierces froglok bok wizard for 77",
"[Sun Aug 21 07:32:55 2022] Wickedsteal pierces froglok bok wizard for 49",
"[Sun Aug 21 07:32:56 2022] Wickedsteal pierces froglok bok wizard for 64",
"[Sun Aug 21 07:32:56 2022] Wickedsteal pierces froglok bok wizard for 5",
"[Sun Aug 21 07:32:59 2022] Wickedsteal pierces froglok bok wizard for 20",
"[Sun Aug 21 07:32:59 2022] Wickedsteal pierces froglok bok wizard for 29",
"[Sun Aug 21 07:33:00 2022] Wickedsteal pierces froglok bok wizard for 41",
"[Sun Aug 21 07:33:00 2022] Wickedsteal pierces froglok bok wizard for 23",
"[Sun Aug 21 07:32:12 2022] Wickedsteal crushes froglok bok wizard for 55",
"[Sun Aug 21 07:32:12 2022] Wickedsteal crushes froglok bok wizard for 39",
"[Sun Aug 21 07:32:13 2022] Wickedsteal crushes froglok bok wizard for 18",
"[Sun Aug 21 07:32:16 2022] Wickedsteal crushes froglok bok wizard for 66",
"[Sun Aug 21 07:32:16 2022] Wickedsteal crushes froglok bok wizard for 68",
"[Sun Aug 21 07:32:17 2022] Wickedsteal crushes froglok bok wizard for 54",
"[Sun Aug 21 07:32:17 2022] Wickedsteal crushes froglok bok wizard for 28",
"[Sun Aug 21 07:32:20 2022] Wickedsteal crushes froglok bok wizard for 42",
"[Sun Aug 21 07:32:20 2022] Wickedsteal crushes froglok bok wizard for 6",
"[Sun Aug 21 07:32:21 2022] Wickedsteal crushes froglok bok wizard for 32",
"[Sun Aug 21 07:32:23 2022] Wickedsteal crushes froglok bok wizard for 30",
"[Sun Aug 21 07:32:23 2022] Wickedsteal crushes froglok bok wizard for 67",
"[Sun Aug 21 07:32:27 2022] Wickedsteal crushes froglok bok wizard for 9",
"[Sun Aug 21 07:32:29 2022] Wickedsteal crushes froglok bok wizard for 83",
"[Sun Aug 21 07:32:29 2022] Wickedsteal crushes froglok bok wizard for 62",
"[Sun Aug 21 07:32:30 2022] Wickedsteal crushes froglok bok wizard for 48",
"[Sun Aug 21 07:32:33 2022] Wickedsteal crushes froglok bok wizard for 12",
"[Sun Aug 21 07:32:38 2022] Wickedsteal crushes froglok bok wizard for 36",
"[Sun Aug 21 07:32:25 2022] Wickedsteal backstabs froglok bok wizard for 194",
"[Sun Aug 21 07:32:31 2022] Wickedsteal backstabs froglok bok wizard for 180",
"[Sun Aug 21 07:32:43 2022] Wickedsteal backstabs froglok bok wizard for 369",
"[Sun Aug 21 07:32:43 2022] Wickedsteal backstabs froglok bok wizard for 194",
"[Sun Aug 21 07:32:49 2022] Wickedsteal backstabs froglok bok wizard for 299",
"[Sun Aug 21 07:32:49 2022] Wickedsteal backstabs froglok bok wizard for 194",
"[Sun Aug 21 07:32:55 2022] Wickedsteal backstabs froglok bok wizard for 478",
];

var result = 0;
for(var i = 0; i < array.length; i++)
{
var last3 = array[i].slice(-3).replace(/\D/g,'');
result += parseInt(last3, 10);
}

console.log(result);


I use Notepad++ to search through the document to find the results that you plug into the array. Doesn't take long at all.
Notepad++ is what I use to go through log data. You can open multiple files and do a search across all open files. You can look for something like "crushes Corudoth for" to get all of your crush hits against Corudoth. It will give you the full text line, so it's easy to copy all those results out of the result window.

Happy Thanksgiving!
Reply With Quote