Regular Expression to match the error code of IIS FTP Log
.*21\s(.*?)\s(.*?)\s[45]
2015-02-01 00:00:14 194.20.113.170 UK2I-ISASAAC01\isat.internal 194.20.113.192 21 NOOP - 200 0 0 f51b3e27-ca5c-4ff4-8f6e-b7b4e12fa6d4 -
2015-02-01 00:00:14 194.20.113.170 UK2I-ISASAAC01\isat.internal 194.20.113.192 21 CWD /NDA 250 0 0 f51b3e27-ca5c-4ff4-8f6e-b7b4e12fa6d4 /NDA
2015-02-01 00:00:14 194.20.113.170 UK2I-ISASAAC01\isat.internal 194.20.113.192 21 PWD - 257 0 0 f51b3e27-ca5c-4ff4-8f6e-b7b4e12fa6d4 -
2015-02-01 00:00:14 194.20.113.170 UK2I-ISASAAC01\isat.internal 194.20.113.192 21 NOOP - 200 0 0 f51b3e27-ca5c-4ff4-8f6e-b7b4e12fa6d4 -
2015-02-01 00:00:14 194.20.113.170 UK2I-ISASAAC01\isat.internal 194.20.113.192 21 CWD /NDA_Staging 250 0 0 f51b3e27-ca5c-4ff4-8f6e-b7b4e12fa6d4 /NDA_Staging
using Windows findstr
findstr /N /R /C:".*21[ ].*[ ].*[ ][45][0-9][0-9][ ]" *.log > ftpec.txt
findstr /N /R /C:".*[ ][45][0-9][0-9][ ]" *.log > ftpec.txt
訂閱:
張貼留言 (Atom)
2023 Promox on Morefine N6000 16GB 512GB
2023 Promox on Morefine N6000 16GB 512GB Software Etcher 100MB (not but can be rufus-4.3.exe 1.4MB) Proxmox VE 7.4 ISO Installer (1st ISO re...
-
On CentOS 7, using yum install gives you cmake version 2.8.11 [root@thrift1 ~]# cat /etc/*release CentOS Linux release 7.2.1511 (Core) ...
-
Synology DSM 5.2 on Virtual Box Files On my Google Drive "2016DSM5.2" or download link below (3 files total: pat, iso, exe) ...
-
Static ZeroMQ (difficult setup) cd /d C:\ mkdir Repos cd /d C:\Repos\ git clone https://github.com/Microsoft/vcpkg cd /d C:\Repos\v...
沒有留言:
張貼留言