[
https://issues.apache.org/jira/browse/EAGLE-789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15676432#comment-15676432
]
ASF GitHub Bot commented on EAGLE-789:
--------------------------------------
GitHub user qingwen220 opened a pull request:
https://github.com/apache/incubator-eagle/pull/669
EAGLE-789: Add a new publisher to write alerts into a local file
https://issues.apache.org/jira/browse/EAGLE-789
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/qingwen220/incubator-eagle EAGLE-789
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-eagle/pull/669.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #669
----
commit 89becde4f018351754da73d08f25bc5b51451825
Author: Qingwen Zhao <[email protected]>
Date: 2016-11-18T09:07:04Z
add AlertFilePublisher
commit 4ec39c745b17fe3686eeea48a82a5b61c8d5ea45
Author: Zhao, Qingwen <[email protected]>
Date: 2016-11-18T10:30:23Z
update
commit e3fcbc2ea43188975c0316ae5b80447b060f24d3
Author: Zhao, Qingwen <[email protected]>
Date: 2016-11-18T10:37:01Z
Fix an IndexOutOfBoundsException
commit 3039d56348a35ff7e38f6912c564d44b256b53f7
Author: Zhao, Qingwen <[email protected]>
Date: 2016-11-18T10:41:06Z
add missing license
----
> Add a new publisher to write alerts into a local file
> -----------------------------------------------------
>
> Key: EAGLE-789
> URL: https://issues.apache.org/jira/browse/EAGLE-789
> Project: Eagle
> Issue Type: New Feature
> Affects Versions: v0.5.0
> Reporter: Zhao, Qingwen
> Assignee: Zhao, Qingwen
> Fix For: v0.5.0
>
>
> Add a new publisher to write alerts into a local file
> configuration:
> {
> "fileName" : "/tmp/eagle-alert.log",
> "rotate_every_kb": 1024,
> "number_of_files": 1
> }
> Result sample:
> INFO: 2016-11-18 08:53:27 UTC alertId=fc5f15ce-f23e-4ebf-9f1b-77b52f5968fe,
> siteId=null, policyId=testPolicy, alertData={dedupCount=0,
> dedupFirstOccurrenceTime=0, host=host1, alertKey=testPolicy-host1-01,
> state=open, timestamp=1479459207615}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)