logstash-codec-protobuf 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +73 -17
- data/docs/index.asciidoc +96 -23
- data/lib/logstash/codecs/protobuf.rb +262 -84
- data/logstash-codec-protobuf.gemspec +1 -1
- data/spec/codecs/{protobuf_spec.rb → pb2_spec.rb} +0 -0
- data/spec/codecs/{protobuf3_spec.rb → pb3_decode_spec.rb} +7 -75
- data/spec/codecs/pb3_encode_spec.rb +220 -0
- data/spec/helpers/pb3/ReservationEntry_pb.rb +64 -0
- data/spec/helpers/pb3/rum2_pb.rb +87 -0
- data/spec/helpers/pb3/rum3_pb.rb +87 -0
- data/spec/helpers/pb3/rum_pb.rb +87 -0
- metadata +16 -6
@@ -0,0 +1,87 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: something/rum_akamai/AkamaiRum.proto
|
3
|
+
|
4
|
+
begin; require 'google/protobuf'; rescue LoadError; end
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "something.logging.ProtoHeader3" do
|
8
|
+
optional :unix_timestamp, :int64, 1
|
9
|
+
optional :sender_id, :string, 2
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module Something
|
14
|
+
module Logging
|
15
|
+
ProtoHeader3 = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.logging.ProtoHeader3").msgclass
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
22
|
+
add_message "something.rum_akamai.ProtoAkamai3Rum" do
|
23
|
+
optional :header, :message, 1, "something.logging.ProtoHeader3"
|
24
|
+
optional :version, :string, 2
|
25
|
+
optional :url, :string, 3
|
26
|
+
optional :http_referer, :string, 4
|
27
|
+
optional :session_id, :string, 5
|
28
|
+
optional :tracking_id, :string, 6
|
29
|
+
optional :locale, :string, 7
|
30
|
+
optional :user_agent, :message, 8, "something.rum_akamai.ProtoAkamai3Rum.ProtoUserAgent"
|
31
|
+
optional :geo, :message, 9, "something.rum_akamai.ProtoAkamai3Rum.ProtoGeoLocation"
|
32
|
+
optional :timers, :message, 10, "something.rum_akamai.ProtoAkamai3Rum.ProtoTimers"
|
33
|
+
optional :page_group, :string, 11
|
34
|
+
repeated :active_ctests, :string, 12
|
35
|
+
optional :dom, :message, 13, "something.rum_akamai.ProtoAkamai3Rum.ProtoDom"
|
36
|
+
optional :domain, :string, 14
|
37
|
+
optional :timestamp, :string, 15
|
38
|
+
end
|
39
|
+
add_message "something.rum_akamai.ProtoAkamai3Rum.ProtoUserAgent" do
|
40
|
+
optional :family, :string, 1
|
41
|
+
optional :major, :float, 2
|
42
|
+
optional :manufacturer, :string, 3
|
43
|
+
optional :minor, :float, 4
|
44
|
+
optional :mobile, :string, 5
|
45
|
+
optional :model, :string, 6
|
46
|
+
optional :os, :string, 7
|
47
|
+
optional :osversion, :string, 8
|
48
|
+
optional :raw, :string, 9
|
49
|
+
optional :type, :string, 10
|
50
|
+
end
|
51
|
+
add_message "something.rum_akamai.ProtoAkamai3Rum.ProtoGeoLocation" do
|
52
|
+
optional :cc, :string, 1
|
53
|
+
optional :city, :string, 2
|
54
|
+
optional :isp, :string, 3
|
55
|
+
optional :lat, :float, 4
|
56
|
+
optional :lon, :float, 5
|
57
|
+
optional :netspeed, :string, 6
|
58
|
+
optional :organisation, :string, 7
|
59
|
+
optional :ovr, :bool, 8
|
60
|
+
optional :postalcode, :string, 9
|
61
|
+
optional :rg, :string, 10
|
62
|
+
end
|
63
|
+
add_message "something.rum_akamai.ProtoAkamai3Rum.ProtoTimers" do
|
64
|
+
optional :t_resp, :int32, 1
|
65
|
+
optional :fid, :int32, 2
|
66
|
+
optional :fcp, :int32, 3
|
67
|
+
optional :tti, :int32, 4
|
68
|
+
optional :ttfi, :int32, 5
|
69
|
+
optional :ttvr, :int32, 6
|
70
|
+
optional :longtasks, :float, 7
|
71
|
+
end
|
72
|
+
add_message "something.rum_akamai.ProtoAkamai3Rum.ProtoDom" do
|
73
|
+
optional :script, :int32, 1
|
74
|
+
optional :ext, :int32, 2
|
75
|
+
optional :ln, :int32, 3
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
module Something
|
80
|
+
module RumAkamai
|
81
|
+
ProtoAkamai3Rum = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamai3Rum").msgclass
|
82
|
+
ProtoAkamai3Rum::ProtoUserAgent = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamai3Rum.ProtoUserAgent").msgclass
|
83
|
+
ProtoAkamai3Rum::ProtoGeoLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamai3Rum.ProtoGeoLocation").msgclass
|
84
|
+
ProtoAkamai3Rum::ProtoTimers = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamai3Rum.ProtoTimers").msgclass
|
85
|
+
ProtoAkamai3Rum::ProtoDom = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamai3Rum.ProtoDom").msgclass
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: something/rum_akamai/AkamaiRum.proto
|
3
|
+
|
4
|
+
begin; require 'google/protobuf'; rescue LoadError; end
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "something.logging.ProtoHeader" do
|
8
|
+
optional :unix_timestamp, :int64, 1
|
9
|
+
optional :sender_id, :string, 2
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module Something
|
14
|
+
module Logging
|
15
|
+
ProtoHeader = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.logging.ProtoHeader").msgclass
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
22
|
+
add_message "something.rum_akamai.ProtoAkamaiRum" do
|
23
|
+
optional :header, :message, 1, "something.logging.ProtoHeader"
|
24
|
+
optional :version, :string, 2
|
25
|
+
optional :url, :string, 3
|
26
|
+
optional :http_referer, :string, 4
|
27
|
+
optional :session_id, :string, 5
|
28
|
+
optional :tracking_id, :string, 6
|
29
|
+
optional :locale, :string, 7
|
30
|
+
optional :user_agent, :message, 8, "something.rum_akamai.ProtoAkamaiRum.ProtoUserAgent"
|
31
|
+
optional :geo, :message, 9, "something.rum_akamai.ProtoAkamaiRum.ProtoGeoLocation"
|
32
|
+
optional :timers, :message, 10, "something.rum_akamai.ProtoAkamaiRum.ProtoTimers"
|
33
|
+
optional :page_group, :string, 11
|
34
|
+
repeated :active_ctests, :string, 12
|
35
|
+
optional :dom, :message, 13, "something.rum_akamai.ProtoAkamaiRum.ProtoDom"
|
36
|
+
optional :domain, :string, 14
|
37
|
+
optional :timestamp, :string, 15
|
38
|
+
end
|
39
|
+
add_message "something.rum_akamai.ProtoAkamaiRum.ProtoUserAgent" do
|
40
|
+
optional :family, :string, 1
|
41
|
+
optional :major, :float, 2
|
42
|
+
optional :manufacturer, :string, 3
|
43
|
+
optional :minor, :float, 4
|
44
|
+
optional :mobile, :string, 5
|
45
|
+
optional :model, :string, 6
|
46
|
+
optional :os, :string, 7
|
47
|
+
optional :osversion, :string, 8
|
48
|
+
optional :raw, :string, 9
|
49
|
+
optional :type, :string, 10
|
50
|
+
end
|
51
|
+
add_message "something.rum_akamai.ProtoAkamaiRum.ProtoGeoLocation" do
|
52
|
+
optional :cc, :string, 1
|
53
|
+
optional :city, :string, 2
|
54
|
+
optional :isp, :string, 3
|
55
|
+
optional :lat, :float, 4
|
56
|
+
optional :lon, :float, 5
|
57
|
+
optional :netspeed, :string, 6
|
58
|
+
optional :organisation, :string, 7
|
59
|
+
optional :ovr, :bool, 8
|
60
|
+
optional :postalcode, :string, 9
|
61
|
+
optional :rg, :string, 10
|
62
|
+
end
|
63
|
+
add_message "something.rum_akamai.ProtoAkamaiRum.ProtoTimers" do
|
64
|
+
optional :t_resp, :int32, 1
|
65
|
+
optional :fid, :int32, 2
|
66
|
+
optional :fcp, :int32, 3
|
67
|
+
optional :tti, :int32, 4
|
68
|
+
optional :ttfi, :int32, 5
|
69
|
+
optional :ttvr, :int32, 6
|
70
|
+
optional :longtasks, :float, 7
|
71
|
+
end
|
72
|
+
add_message "something.rum_akamai.ProtoAkamaiRum.ProtoDom" do
|
73
|
+
optional :script, :int32, 1
|
74
|
+
optional :ext, :int32, 2
|
75
|
+
optional :ln, :int32, 3
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
module Something
|
80
|
+
module RumAkamai
|
81
|
+
ProtoAkamaiRum = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamaiRum").msgclass
|
82
|
+
ProtoAkamaiRum::ProtoUserAgent = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamaiRum.ProtoUserAgent").msgclass
|
83
|
+
ProtoAkamaiRum::ProtoGeoLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamaiRum.ProtoGeoLocation").msgclass
|
84
|
+
ProtoAkamaiRum::ProtoTimers = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamaiRum.ProtoTimers").msgclass
|
85
|
+
ProtoAkamaiRum::ProtoDom = Google::Protobuf::DescriptorPool.generated_pool.lookup("something.rum_akamai.ProtoAkamaiRum.ProtoDom").msgclass
|
86
|
+
end
|
87
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-codec-protobuf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Inga Feick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,8 +90,9 @@ files:
|
|
90
90
|
- docs/index.asciidoc
|
91
91
|
- lib/logstash/codecs/protobuf.rb
|
92
92
|
- logstash-codec-protobuf.gemspec
|
93
|
-
- spec/codecs/
|
94
|
-
- spec/codecs/
|
93
|
+
- spec/codecs/pb2_spec.rb
|
94
|
+
- spec/codecs/pb3_decode_spec.rb
|
95
|
+
- spec/codecs/pb3_encode_spec.rb
|
95
96
|
- spec/helpers/pb2/ColourTestcase.pb.rb
|
96
97
|
- spec/helpers/pb2/ColourTestcase.proto
|
97
98
|
- spec/helpers/pb2/event.pb.rb
|
@@ -102,6 +103,7 @@ files:
|
|
102
103
|
- spec/helpers/pb2/unicorn.pb.rb
|
103
104
|
- spec/helpers/pb2/unicorn_event.pb.rb
|
104
105
|
- spec/helpers/pb3/ProbeResult_pb.rb
|
106
|
+
- spec/helpers/pb3/ReservationEntry_pb.rb
|
105
107
|
- spec/helpers/pb3/dnsmessage_pb.rb
|
106
108
|
- spec/helpers/pb3/events.proto3
|
107
109
|
- spec/helpers/pb3/events_pb.rb
|
@@ -112,6 +114,9 @@ files:
|
|
112
114
|
- spec/helpers/pb3/messageA_pb.rb
|
113
115
|
- spec/helpers/pb3/messageB.proto3
|
114
116
|
- spec/helpers/pb3/messageB_pb.rb
|
117
|
+
- spec/helpers/pb3/rum2_pb.rb
|
118
|
+
- spec/helpers/pb3/rum3_pb.rb
|
119
|
+
- spec/helpers/pb3/rum_pb.rb
|
115
120
|
- spec/helpers/pb3/unicorn.proto3
|
116
121
|
- spec/helpers/pb3/unicorn_pb.rb
|
117
122
|
homepage:
|
@@ -141,8 +146,9 @@ signing_key:
|
|
141
146
|
specification_version: 4
|
142
147
|
summary: Reads protobuf messages and converts to Logstash Events
|
143
148
|
test_files:
|
144
|
-
- spec/codecs/
|
145
|
-
- spec/codecs/
|
149
|
+
- spec/codecs/pb2_spec.rb
|
150
|
+
- spec/codecs/pb3_decode_spec.rb
|
151
|
+
- spec/codecs/pb3_encode_spec.rb
|
146
152
|
- spec/helpers/pb2/ColourTestcase.pb.rb
|
147
153
|
- spec/helpers/pb2/ColourTestcase.proto
|
148
154
|
- spec/helpers/pb2/event.pb.rb
|
@@ -153,6 +159,7 @@ test_files:
|
|
153
159
|
- spec/helpers/pb2/unicorn.pb.rb
|
154
160
|
- spec/helpers/pb2/unicorn_event.pb.rb
|
155
161
|
- spec/helpers/pb3/ProbeResult_pb.rb
|
162
|
+
- spec/helpers/pb3/ReservationEntry_pb.rb
|
156
163
|
- spec/helpers/pb3/dnsmessage_pb.rb
|
157
164
|
- spec/helpers/pb3/events.proto3
|
158
165
|
- spec/helpers/pb3/events_pb.rb
|
@@ -163,5 +170,8 @@ test_files:
|
|
163
170
|
- spec/helpers/pb3/messageA_pb.rb
|
164
171
|
- spec/helpers/pb3/messageB.proto3
|
165
172
|
- spec/helpers/pb3/messageB_pb.rb
|
173
|
+
- spec/helpers/pb3/rum2_pb.rb
|
174
|
+
- spec/helpers/pb3/rum3_pb.rb
|
175
|
+
- spec/helpers/pb3/rum_pb.rb
|
166
176
|
- spec/helpers/pb3/unicorn.proto3
|
167
177
|
- spec/helpers/pb3/unicorn_pb.rb
|