File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 20
20
import cdn
21
21
import elasticsearch
22
22
import graphite
23
+ import heka
23
24
import incident
24
25
import kernel
25
26
import licensify
Original file line number Diff line number Diff line change
1
+ from fabric .api import *
2
+
3
+ @task
4
+ def bootstrap (utility , config ):
5
+ """
6
+ Bootstrap journal files for Heka
7
+
8
+ To prevent Heka from reading old log entries and sending duplicate data
9
+ to Elasticsearch, when monitoring new log files. Utility built from:
10
+
11
+ https://github.com/dcarley/heka/compare/dcarley:versions/0.8...logstreamer_bootstrap_journals
12
+ """
13
+ put (utility , mirror_local_mode = True )
14
+ put (config )
15
+ sudo ('install -d -m0744 /var/cache/hekad/logstreamer' )
16
+ sudo ('~/%s -config %s -bootstrapJournals' % (utility , config ))
17
+ run ('rm %s %s' % (utility , config ))
You can’t perform that action at this time.
0 commit comments