logflume 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +45 -4
- data/lib/logflume/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a92a64b9bace5a1daaa45778fdcebd557571a33
|
4
|
+
data.tar.gz: 563c95da849f5dad5d93580f7cc1053725201735
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc6fbadefacbbfa74c69827a95cd8a82bb1fa58edbc4fb5ab61983c1be2def3921103192d2cb1a424d830768bd46052aba9b31eec32d3ca67e1e0a938e5eaac8
|
7
|
+
data.tar.gz: dda8f6672b8ffcd8853428f917f197e86a46de1f7c34142c420452a7e21bc9add7f23eb88623fd234209bb1e9322ebe8839170dda40517639219e01598a0bb3a
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ A library to continually dump the contents of new logfiles into a POSIX FIFO pip
|
|
8
8
|
## Build Status
|
9
9
|
|
10
10
|
[](https://travis-ci.org/shadowbq/logflume)
|
11
|
-
[](https://codeclimate.com/github/shadowbq/logflume)
|
11
|
+
[](https://codeclimate.com/github/shadowbq/logflume)
|
12
12
|
[](https://codeclimate.com/github/shadowbq/logflume)
|
13
13
|
[](http://github.com/shadowbq/logflume)
|
14
14
|
|
@@ -23,7 +23,7 @@ A library to continually dump the contents of new logfiles into a POSIX FIFO pip
|
|
23
23
|
|
24
24
|
## EXAMPLE IMPLEMENTATION:
|
25
25
|
|
26
|
-
This is a single blocking logflume. We can call this `worker.rb`.
|
26
|
+
This is a single blocking logflume. We can call this `worker.rb`.
|
27
27
|
|
28
28
|
You need three posix shells for this to properly work
|
29
29
|
|
@@ -53,16 +53,39 @@ flume.start
|
|
53
53
|
gets
|
54
54
|
```
|
55
55
|
|
56
|
-
###
|
56
|
+
### CAT - Dump the FIFO pipe
|
57
57
|
|
58
58
|
```shell
|
59
|
-
$
|
59
|
+
[shadowbq@fn-pound](~)$ cat /tmp/logflume.conveyor.fifo
|
60
|
+
2015-02-04 13:17:16 startup archives unpack
|
61
|
+
2015-02-04 13:17:16 install libjpeg-turbo-progs:amd64 <none> 1.3.0-0ubuntu2
|
62
|
+
2015-02-04 13:17:16 status half-installed libjpeg-turbo-progs:amd64 1.3.0-0ubuntu2
|
63
|
+
2015-02-04 13:17:17 status triggers-pending man-db:amd64 2.6.7.1-1ubuntu1
|
64
|
+
2015-02-04 13:17:17 status unpacked libjpeg-turbo-progs:amd64 1.3.0-0ubuntu2
|
65
|
+
2015-02-04 13:17:17 status unpacked libjpeg-turbo-progs:amd64 1.3.0-0ubuntu2
|
66
|
+
2015-02-04 13:17:17 install libjpeg-progs:amd64 <none> 8c-2ubuntu8
|
67
|
+
2015-02-04 13:17:17 status half-installed libjpeg-progs:amd64 8c-2ubuntu8
|
68
|
+
2015-02-04 13:17:17 status unpacked libjpeg-progs:amd64 8c-2ubuntu8
|
69
|
+
2015-02-04 13:17:17 status unpacked libjpeg-progs:amd64 8c-2ubuntu8
|
70
|
+
2015-02-04 13:17:17 install jhead:amd64 <none> 1:2.97-1
|
71
|
+
2015-02-04 13:17:17 status half-installed jhead:amd64 1:2.97-1
|
72
|
+
2015-02-04 13:17:17 status unpacked jhead:amd64 1:2.97-1
|
73
|
+
2015-02-04 13:17:17 status unpacked jhead:amd64 1:2.97-1
|
74
|
+
2015-02-04 13:17:17 install libimage-exiftool-perl:all <none> 9.46-1
|
75
|
+
```
|
76
|
+
|
77
|
+
### Example `worker.rb` Output
|
78
|
+
|
79
|
+
```shell
|
80
|
+
$ ruby worker.rb
|
60
81
|
I, [2015-02-09T00:31:22.389096 #20712] INFO -- : new File found => /home/shadowbq/sandbox/github-shadowbq/logflume/spec/data/flume/dpkg.log
|
61
82
|
I, [2015-02-09T00:31:22.395498 #20712] INFO -- : new File found => /home/shadowbq/sandbox/github-shadowbq/logflume/spec/data/flume/test.log
|
62
83
|
(.. RCVR SIGQUIT see below ..)
|
63
84
|
Terminating...
|
64
85
|
```
|
65
86
|
|
87
|
+
|
88
|
+
|
66
89
|
### Control Signal Hooks
|
67
90
|
|
68
91
|
```shell
|
@@ -75,6 +98,24 @@ shadowbq 20712 0.4 0.0 262508 14836 pts/0 Sl+ 00:30 0:04 ruby worker.rb
|
|
75
98
|
$ kill -3 20712
|
76
99
|
```
|
77
100
|
|
101
|
+
## Troubleshooting
|
102
|
+
|
103
|
+
If mkfifo gem fails to load:
|
104
|
+
|
105
|
+
```ruby
|
106
|
+
`rescue in <top (required)>': No such file to load, please install 'win32/pipe' or 'mkfifo' (LoadError)
|
107
|
+
```
|
108
|
+
|
109
|
+
check the permissions on the `lib` of the gems directory
|
110
|
+
|
111
|
+
Ala..
|
112
|
+
|
113
|
+
```shell
|
114
|
+
sudo chmod a+rx /usr/local/lib/ruby/gems/2.0/gems/mkfifo-0.0.1/lib
|
115
|
+
```
|
116
|
+
|
117
|
+
|
118
|
+
|
78
119
|
## LICENSE:
|
79
120
|
|
80
121
|
(The MIT License)
|
data/lib/logflume/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logflume
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shadowbq
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: directory_watcher
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: mkfifo
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.0.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.0.1
|
41
41
|
- !ruby/object:Gem::Dependency
|