{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/pulls/1","id":34210316,"html_url":"https://github.com/Security-Onion-Solutions/securityonion-sguil-agent-ossec/pull/1","diff_url":"https://github.com/Security-Onion-Solutions/securityonion-sguil-agent-ossec/pull/1.diff","patch_url":"https://github.com/Security-Onion-Solutions/securityonion-sguil-agent-ossec/pull/1.patch","issue_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/issues/1","number":1,"state":"open","locked":false,"title":"Update ossec_agent.tcl","user":{"login":"theflakes","id":6267014,"avatar_url":"https://avatars.githubusercontent.com/u/6267014?v=3","gravatar_id":"","url":"https://api.github.com/users/theflakes","html_url":"https://github.com/theflakes","followers_url":"https://api.github.com/users/theflakes/followers","following_url":"https://api.github.com/users/theflakes/following{/other_user}","gists_url":"https://api.github.com/users/theflakes/gists{/gist_id}","starred_url":"https://api.github.com/users/theflakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theflakes/subscriptions","organizations_url":"https://api.github.com/users/theflakes/orgs","repos_url":"https://api.github.com/users/theflakes/repos","events_url":"https://api.github.com/users/theflakes/events{/privacy}","received_events_url":"https://api.github.com/users/theflakes/received_events","type":"User","site_admin":false},"body":"Changed regex for matching first line after the \"** Alert\" OSSEC line as there were border cases where the regex could match twice on some Windows events.  Thus making ossec-agent think that one alerts was actually two alerts by mistake.  Changed to ^(\\d\\d\\d\\d)\\s+(...)\\s+(\\d\\d)\\s+(\\d\\d:\\d\\d:\\d\\d)\\s+(\\(.*\\)\\s+)*(\\S+)->\r\n\r\nDivided the ProcessDate proc into two procedures.  The ProcessData proc now fires SendAlert proc if it matches a new line indicating OSSEC is done writing the new alert to alert.log.  This, hopefully, fixes the issue with an alert only being sent to Sguil after the next OSSEC alert starts to be written to alerts.log.\r\n\r\nAlso added setting agent to \"\" at the end of the SendAlert proc.\r\n\r\nI'm still a git novice so my apologies is I screwed anything up.","created_at":"2015-04-27T21:06:07Z","updated_at":"2015-04-27T21:06:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/issues/1/comments","statuses_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/statuses/47f054837cbe3441cbdee9df60b3409a24c2db2a","head":{"label":"theflakes:master","ref":"master","sha":"47f054837cbe3441cbdee9df60b3409a24c2db2a","user":{"login":"theflakes","id":6267014,"avatar_url":"https://avatars.githubusercontent.com/u/6267014?v=3","gravatar_id":"","url":"https://api.github.com/users/theflakes","html_url":"https://github.com/theflakes","followers_url":"https://api.github.com/users/theflakes/followers","following_url":"https://api.github.com/users/theflakes/following{/other_user}","gists_url":"https://api.github.com/users/theflakes/gists{/gist_id}","starred_url":"https://api.github.com/users/theflakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theflakes/subscriptions","organizations_url":"https://api.github.com/users/theflakes/orgs","repos_url":"https://api.github.com/users/theflakes/repos","events_url":"https://api.github.com/users/theflakes/events{/privacy}","received_events_url":"https://api.github.com/users/theflakes/received_events","type":"User","site_admin":false},"repo":{"id":34689798,"name":"securityonion-sguil-agent-ossec","full_name":"theflakes/securityonion-sguil-agent-ossec","owner":{"login":"theflakes","id":6267014,"avatar_url":"https://avatars.githubusercontent.com/u/6267014?v=3","gravatar_id":"","url":"https://api.github.com/users/theflakes","html_url":"https://github.com/theflakes","followers_url":"https://api.github.com/users/theflakes/followers","following_url":"https://api.github.com/users/theflakes/following{/other_user}","gists_url":"https://api.github.com/users/theflakes/gists{/gist_id}","starred_url":"https://api.github.com/users/theflakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theflakes/subscriptions","organizations_url":"https://api.github.com/users/theflakes/orgs","repos_url":"https://api.github.com/users/theflakes/repos","events_url":"https://api.github.com/users/theflakes/events{/privacy}","received_events_url":"https://api.github.com/users/theflakes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/theflakes/securityonion-sguil-agent-ossec","description":"","fork":true,"url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec","forks_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/forks","keys_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/teams","hooks_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/hooks","issue_events_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/issues/events{/number}","events_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/events","assignees_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/assignees{/user}","branches_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/branches{/branch}","tags_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/tags","blobs_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/git/refs{/sha}","trees_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/statuses/{sha}","languages_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/languages","stargazers_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/stargazers","contributors_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/contributors","subscribers_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/subscribers","subscription_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/subscription","commits_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/commits{/sha}","git_commits_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/git/commits{/sha}","comments_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/comments{/number}","issue_comment_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/issues/comments{/number}","contents_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/contents/{+path}","compare_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/merges","archive_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/downloads","issues_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/issues{/number}","pulls_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/pulls{/number}","milestones_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/milestones{/number}","notifications_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/labels{/name}","releases_url":"https://api.github.com/repos/theflakes/securityonion-sguil-agent-ossec/releases{/id}","created_at":"2015-04-27T20:34:42Z","updated_at":"2015-04-27T21:03:51Z","pushed_at":"2015-04-27T21:03:51Z","git_url":"git://github.com/theflakes/securityonion-sguil-agent-ossec.git","ssh_url":"git@github.com:theflakes/securityonion-sguil-agent-ossec.git","clone_url":"https://github.com/theflakes/securityonion-sguil-agent-ossec.git","svn_url":"https://github.com/theflakes/securityonion-sguil-agent-ossec","homepage":null,"size":113,"stargazers_count":0,"watchers_count":0,"language":"Tcl","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Security-Onion-Solutions:master","ref":"master","sha":"6418c4379ed5bb1fdd55d79dcc3eaf3cc4852662","user":{"login":"Security-Onion-Solutions","id":8959843,"avatar_url":"https://avatars.githubusercontent.com/u/8959843?v=3","gravatar_id":"","url":"https://api.github.com/users/Security-Onion-Solutions","html_url":"https://github.com/Security-Onion-Solutions","followers_url":"https://api.github.com/users/Security-Onion-Solutions/followers","following_url":"https://api.github.com/users/Security-Onion-Solutions/following{/other_user}","gists_url":"https://api.github.com/users/Security-Onion-Solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/Security-Onion-Solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Security-Onion-Solutions/subscriptions","organizations_url":"https://api.github.com/users/Security-Onion-Solutions/orgs","repos_url":"https://api.github.com/users/Security-Onion-Solutions/repos","events_url":"https://api.github.com/users/Security-Onion-Solutions/events{/privacy}","received_events_url":"https://api.github.com/users/Security-Onion-Solutions/received_events","type":"Organization","site_admin":false},"repo":{"id":33404491,"name":"securityonion-sguil-agent-ossec","full_name":"Security-Onion-Solutions/securityonion-sguil-agent-ossec","owner":{"login":"Security-Onion-Solutions","id":8959843,"avatar_url":"https://avatars.githubusercontent.com/u/8959843?v=3","gravatar_id":"","url":"https://api.github.com/users/Security-Onion-Solutions","html_url":"https://github.com/Security-Onion-Solutions","followers_url":"https://api.github.com/users/Security-Onion-Solutions/followers","following_url":"https://api.github.com/users/Security-Onion-Solutions/following{/other_user}","gists_url":"https://api.github.com/users/Security-Onion-Solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/Security-Onion-Solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Security-Onion-Solutions/subscriptions","organizations_url":"https://api.github.com/users/Security-Onion-Solutions/orgs","repos_url":"https://api.github.com/users/Security-Onion-Solutions/repos","events_url":"https://api.github.com/users/Security-Onion-Solutions/events{/privacy}","received_events_url":"https://api.github.com/users/Security-Onion-Solutions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Security-Onion-Solutions/securityonion-sguil-agent-ossec","description":"","fork":false,"url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec","forks_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/forks","keys_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/teams","hooks_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/hooks","issue_events_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/issues/events{/number}","events_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/events","assignees_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/assignees{/user}","branches_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/branches{/branch}","tags_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/tags","blobs_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/git/refs{/sha}","trees_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/statuses/{sha}","languages_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/languages","stargazers_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/stargazers","contributors_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/contributors","subscribers_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/subscribers","subscription_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/subscription","commits_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/commits{/sha}","git_commits_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/git/commits{/sha}","comments_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/comments{/number}","issue_comment_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/issues/comments{/number}","contents_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/contents/{+path}","compare_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/merges","archive_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/downloads","issues_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/issues{/number}","pulls_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/pulls{/number}","milestones_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/milestones{/number}","notifications_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/labels{/name}","releases_url":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/releases{/id}","created_at":"2015-04-04T12:18:55Z","updated_at":"2015-04-27T20:34:00Z","pushed_at":"2015-04-04T12:33:15Z","git_url":"git://github.com/Security-Onion-Solutions/securityonion-sguil-agent-ossec.git","ssh_url":"git@github.com:Security-Onion-Solutions/securityonion-sguil-agent-ossec.git","clone_url":"https://github.com/Security-Onion-Solutions/securityonion-sguil-agent-ossec.git","svn_url":"https://github.com/Security-Onion-Solutions/securityonion-sguil-agent-ossec","homepage":null,"size":140,"stargazers_count":2,"watchers_count":2,"language":"Tcl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/pulls/1"},"html":{"href":"https://github.com/Security-Onion-Solutions/securityonion-sguil-agent-ossec/pull/1"},"issue":{"href":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/issues/1"},"comments":{"href":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Security-Onion-Solutions/securityonion-sguil-agent-ossec/statuses/47f054837cbe3441cbdee9df60b3409a24c2db2a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":132,"deletions":123,"changed_files":1}}