This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[PHP Modules] | |
bcmath | |
calendar | |
Core | |
ctype | |
curl | |
date | |
dom | |
exif | |
fileinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from datetime import datetime | |
def parse_pureftpd(logger, line): | |
# Split the line into fields | |
time, unique, username, ip, direction, bytes, duration, filename = line.split(' ') | |
attr_dict = {"username": username, "metric_type": "counter"} | |
return ('pure-ftpd.uploads', time, 1, attr_dict) |