import re
from time import sleep as s

def getIPs():
	log = list(open("/var/log/syslog.1",'r').read().split('\n'))
	newip = []

	for entry in log:
		ips = re.findall(r'[0-9]+(?:\.[0-9]+){3}',entry)
		for ip in ips:
			newip.append(ip)

	t = list(set(newip))
	x = 0
	size = len(t)
	#print(len(t))
	#while(x != size):
	#	print("ip: ", t[x])
	#	x += 1
	return t

###########################################
# created by Samuel Schatz                #
# github: https://github.com/sschatz1997  #
# email: sjschatz@captechu.edu            #
###########################################