When trying to compile the latest syslog-ng git snapshot on the latest openSUSE Tubmleweed (rolling release), compilation of the Python part fails. There I use system Python. As there were no Python ...
def parse_syslog(log_file): with open(log_file, 'r') as file: for line in file: match = re.search(r'^(\w{3}\s+\d{1,2}\s[\d:]+)\s(\S+)\s(\S+)[(\d+)]:\s(.*)$', line) if ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results