{"action":"created","issue":{"url":"https://api.github.com/repos/stamparm/maltrail/issues/42","labels_url":"https://api.github.com/repos/stamparm/maltrail/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/stamparm/maltrail/issues/42/comments","events_url":"https://api.github.com/repos/stamparm/maltrail/issues/42/events","html_url":"https://github.com/stamparm/maltrail/issues/42","id":124164359,"number":42,"title":"Problem with logging (i think)","user":{"login":"o-be-one","id":4061922,"avatar_url":"https://avatars.githubusercontent.com/u/4061922?v=3","gravatar_id":"","url":"https://api.github.com/users/o-be-one","html_url":"https://github.com/o-be-one","followers_url":"https://api.github.com/users/o-be-one/followers","following_url":"https://api.github.com/users/o-be-one/following{/other_user}","gists_url":"https://api.github.com/users/o-be-one/gists{/gist_id}","starred_url":"https://api.github.com/users/o-be-one/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o-be-one/subscriptions","organizations_url":"https://api.github.com/users/o-be-one/orgs","repos_url":"https://api.github.com/users/o-be-one/repos","events_url":"https://api.github.com/users/o-be-one/events{/privacy}","received_events_url":"https://api.github.com/users/o-be-one/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-29T05:11:09Z","updated_at":"2015-12-30T00:43:22Z","closed_at":null,"body":"Hello stamparm,\r\n\r\ni'm glad to discover this tool, could be useful to use it. That's why i've started to try it and at this time i'm not able to do what is it supposed to do.\r\n\r\nFirst of all, i've nothing on the webserver, saying there's no event. But the calendar show event and the number increase.\r\nI've started in debug, it's an ubuntu 14.04.\r\n\r\nTo begin, in documentation, you don't use sudo to start the webserv daemon, and i got a perm error to read logs. It could be awesome to dos something who will work at the begin without needs of chown or chmod.\r\n\r\nAnd the problem i have when starting the webserver as sudo/root : \r\n```\r\n[i] starting HTTP server at 'http://0.0.0.0:8338/'\r\n[o] running...\r\nTraceback (most recent call last):\r\n  File \"/home/admin/maltrail/core/httpd.py\", line 514, in _counts\r\n    current = datetime.datetime.strptime(os.path.splitext(os.path.basename(filename))[0], DATE_FORMAT)\r\n  File \"/usr/lib/python2.7/_strptime.py\", line 325, in _strptime\r\n    (data_string, format))\r\nValueError: time data 'error' does not match format '%Y-%m-%d'\r\n```\r\n\r\nMy sensor log file looks like this : \r\n```\r\n\"2015-12-29 03:57:27.818642\" maltrail 149.202.238.199 41049 92.x.x.x 8888 TCP IP 149.202.238.199 \"bad reputation (malicious)\" alienvault.com\r\n\"2015-12-29 03:59:53.915040\" maltrail 92.x.x.x - 136.161.101.53 - ICMP IP 136.161.101.53 \"conficker (malware)\" (static)\r\n\"2015-12-29 04:03:56.389039\" maltrail 92.x.x.x - 136.161.101.53 - ICMP IP 136.161.101.53 \"conficker (malware)\" (static)\r\n```\r\n\r\nI'm trying too to put a sensor on an other server, but actually it's not able to send logs to webserver. I'll tell you more in other ticket if i don't find how to fix this.\r\n\r\nThanks again for this good job."},"comment":{"url":"https://api.github.com/repos/stamparm/maltrail/issues/comments/167906983","html_url":"https://github.com/stamparm/maltrail/issues/42#issuecomment-167906983","issue_url":"https://api.github.com/repos/stamparm/maltrail/issues/42","id":167906983,"user":{"login":"o-be-one","id":4061922,"avatar_url":"https://avatars.githubusercontent.com/u/4061922?v=3","gravatar_id":"","url":"https://api.github.com/users/o-be-one","html_url":"https://github.com/o-be-one","followers_url":"https://api.github.com/users/o-be-one/followers","following_url":"https://api.github.com/users/o-be-one/following{/other_user}","gists_url":"https://api.github.com/users/o-be-one/gists{/gist_id}","starred_url":"https://api.github.com/users/o-be-one/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o-be-one/subscriptions","organizations_url":"https://api.github.com/users/o-be-one/orgs","repos_url":"https://api.github.com/users/o-be-one/repos","events_url":"https://api.github.com/users/o-be-one/events{/privacy}","received_events_url":"https://api.github.com/users/o-be-one/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T00:43:22Z","updated_at":"2015-12-30T00:43:22Z","body":"It seems to appears only with the current day logs :\r\n```\r\n[i] using configuration file '/home/admin/maltrail/maltrail.conf'\r\n[i] running UDP server at '0.0.0.0:8337'\r\n[i] starting HTTP server at 'http://0.0.0.0:8338/'\r\n[o] running...\r\nTraceback (most recent call last):\r\n  File \"/home/admin/maltrail/core/log.py\", line 97, in handle\r\n    handle = get_event_log_handle(int(sec))\r\n  File \"/home/admin/maltrail/core/log.py\", line 41, in get_event_log_handle\r\n    _thread_data.event_log_handle = os.open(_thread_data.event_log_path, flags)\r\nOSError: [Errno 13] Permission denied: '/var/log/maltrail/2015-12-30.log'\r\n```"}}