Hello,
Can you please advise/hint how to count the last item from a log. Just want to check if the last log happened earlier. I can't check it using text pattern, as the logs are totally different (contains IP and name of a person, and I would like to check if the same combination of IP and name was earlier in the logs)
Kind of {Server:logrt["...\access[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].log",@WebmailRadu,,,skip,\1_\2].count(300,{Server:logrt["....\access[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].log",@WebmailRadu,,,skip,\1_\2].last()})}<5
But this doesn't work
Thank you in advance
Can you please advise/hint how to count the last item from a log. Just want to check if the last log happened earlier. I can't check it using text pattern, as the logs are totally different (contains IP and name of a person, and I would like to check if the same combination of IP and name was earlier in the logs)
Kind of {Server:logrt["...\access[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].log",@WebmailRadu,,,skip,\1_\2].count(300,{Server:logrt["....\access[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].log",@WebmailRadu,,,skip,\1_\2].last()})}<5
But this doesn't work
Thank you in advance

Comment