Firewall raw Logs

Finding malicious IP addresses in raw logs.

Parsing raw logs

EmEditor to read large files.

We can collect all the source IP address for each line. We can do it by using the following command:

cat log.log | cut -d "," -f10
or Windows version
cat .\log.csv | cut -d "," -f10 | Out-File -FilePath ips.txt -Encoding utf8

Now, we have the IP addresses with duplicated line by line.

After that, we could use the following combination to analyze them.

Next, we can collect some of them and look up the addresses or analyze them in an online tool such as AbuseIPDB.

Lookup IPs online

CyberChef is always a good friend 🦆

Or using this script:

Last updated

Was this helpful?