fluentd 0.14.4-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fluentd might be problematic. Click here for more details.

Files changed (328) hide show
  1. checksums.yaml +7 -0
  2. data/.github/ISSUE_TEMPLATE.md +6 -0
  3. data/.gitignore +26 -0
  4. data/.travis.yml +45 -0
  5. data/AUTHORS +2 -0
  6. data/CONTRIBUTING.md +35 -0
  7. data/COPYING +14 -0
  8. data/ChangeLog +276 -0
  9. data/Gemfile +9 -0
  10. data/README.md +51 -0
  11. data/Rakefile +53 -0
  12. data/Vagrantfile +17 -0
  13. data/appveyor.yml +41 -0
  14. data/bin/fluent-debug +5 -0
  15. data/example/copy_roundrobin.conf +39 -0
  16. data/example/filter_stdout.conf +22 -0
  17. data/example/in_forward.conf +11 -0
  18. data/example/in_http.conf +14 -0
  19. data/example/in_out_forward.conf +17 -0
  20. data/example/in_syslog.conf +15 -0
  21. data/example/in_tail.conf +14 -0
  22. data/example/in_tcp.conf +13 -0
  23. data/example/in_udp.conf +13 -0
  24. data/example/multi_filters.conf +61 -0
  25. data/example/out_buffered_null.conf +32 -0
  26. data/example/out_copy.conf +20 -0
  27. data/example/out_file.conf +13 -0
  28. data/example/out_forward.conf +35 -0
  29. data/example/out_forward_buf_file.conf +23 -0
  30. data/example/v0_12_filter.conf +78 -0
  31. data/example/v1_literal_example.conf +36 -0
  32. data/fluent.conf +139 -0
  33. data/fluentd.gemspec +51 -0
  34. data/lib/fluent/agent.rb +194 -0
  35. data/lib/fluent/command/bundler_injection.rb +45 -0
  36. data/lib/fluent/command/cat.rb +319 -0
  37. data/lib/fluent/command/debug.rb +102 -0
  38. data/lib/fluent/command/fluentd.rb +273 -0
  39. data/lib/fluent/compat/call_super_mixin.rb +67 -0
  40. data/lib/fluent/compat/exec_util.rb +129 -0
  41. data/lib/fluent/compat/file_util.rb +54 -0
  42. data/lib/fluent/compat/filter.rb +68 -0
  43. data/lib/fluent/compat/formatter.rb +111 -0
  44. data/lib/fluent/compat/formatter_utils.rb +85 -0
  45. data/lib/fluent/compat/handle_tag_and_time_mixin.rb +62 -0
  46. data/lib/fluent/compat/handle_tag_name_mixin.rb +53 -0
  47. data/lib/fluent/compat/input.rb +49 -0
  48. data/lib/fluent/compat/output.rb +677 -0
  49. data/lib/fluent/compat/output_chain.rb +60 -0
  50. data/lib/fluent/compat/parser.rb +180 -0
  51. data/lib/fluent/compat/parser_utils.rb +40 -0
  52. data/lib/fluent/compat/propagate_default.rb +62 -0
  53. data/lib/fluent/compat/record_filter_mixin.rb +34 -0
  54. data/lib/fluent/compat/set_tag_key_mixin.rb +50 -0
  55. data/lib/fluent/compat/set_time_key_mixin.rb +69 -0
  56. data/lib/fluent/compat/socket_util.rb +165 -0
  57. data/lib/fluent/compat/string_util.rb +34 -0
  58. data/lib/fluent/compat/structured_format_mixin.rb +26 -0
  59. data/lib/fluent/compat/type_converter.rb +90 -0
  60. data/lib/fluent/config.rb +56 -0
  61. data/lib/fluent/config/basic_parser.rb +123 -0
  62. data/lib/fluent/config/configure_proxy.rb +366 -0
  63. data/lib/fluent/config/dsl.rb +149 -0
  64. data/lib/fluent/config/element.rb +218 -0
  65. data/lib/fluent/config/error.rb +26 -0
  66. data/lib/fluent/config/literal_parser.rb +251 -0
  67. data/lib/fluent/config/parser.rb +107 -0
  68. data/lib/fluent/config/section.rb +212 -0
  69. data/lib/fluent/config/types.rb +136 -0
  70. data/lib/fluent/config/v1_parser.rb +190 -0
  71. data/lib/fluent/configurable.rb +176 -0
  72. data/lib/fluent/daemon.rb +15 -0
  73. data/lib/fluent/engine.rb +220 -0
  74. data/lib/fluent/env.rb +27 -0
  75. data/lib/fluent/event.rb +287 -0
  76. data/lib/fluent/event_router.rb +259 -0
  77. data/lib/fluent/filter.rb +21 -0
  78. data/lib/fluent/formatter.rb +23 -0
  79. data/lib/fluent/input.rb +21 -0
  80. data/lib/fluent/label.rb +38 -0
  81. data/lib/fluent/load.rb +36 -0
  82. data/lib/fluent/log.rb +445 -0
  83. data/lib/fluent/match.rb +141 -0
  84. data/lib/fluent/mixin.rb +31 -0
  85. data/lib/fluent/msgpack_factory.rb +62 -0
  86. data/lib/fluent/output.rb +26 -0
  87. data/lib/fluent/output_chain.rb +23 -0
  88. data/lib/fluent/parser.rb +23 -0
  89. data/lib/fluent/plugin.rb +161 -0
  90. data/lib/fluent/plugin/bare_output.rb +63 -0
  91. data/lib/fluent/plugin/base.rb +130 -0
  92. data/lib/fluent/plugin/buf_file.rb +154 -0
  93. data/lib/fluent/plugin/buf_memory.rb +34 -0
  94. data/lib/fluent/plugin/buffer.rb +603 -0
  95. data/lib/fluent/plugin/buffer/chunk.rb +160 -0
  96. data/lib/fluent/plugin/buffer/file_chunk.rb +323 -0
  97. data/lib/fluent/plugin/buffer/memory_chunk.rb +90 -0
  98. data/lib/fluent/plugin/exec_util.rb +22 -0
  99. data/lib/fluent/plugin/file_util.rb +22 -0
  100. data/lib/fluent/plugin/file_wrapper.rb +120 -0
  101. data/lib/fluent/plugin/filter.rb +93 -0
  102. data/lib/fluent/plugin/filter_grep.rb +75 -0
  103. data/lib/fluent/plugin/filter_record_transformer.rb +342 -0
  104. data/lib/fluent/plugin/filter_stdout.rb +53 -0
  105. data/lib/fluent/plugin/formatter.rb +45 -0
  106. data/lib/fluent/plugin/formatter_csv.rb +47 -0
  107. data/lib/fluent/plugin/formatter_hash.rb +29 -0
  108. data/lib/fluent/plugin/formatter_json.rb +44 -0
  109. data/lib/fluent/plugin/formatter_ltsv.rb +41 -0
  110. data/lib/fluent/plugin/formatter_msgpack.rb +29 -0
  111. data/lib/fluent/plugin/formatter_out_file.rb +78 -0
  112. data/lib/fluent/plugin/formatter_single_value.rb +34 -0
  113. data/lib/fluent/plugin/formatter_stdout.rb +74 -0
  114. data/lib/fluent/plugin/in_debug_agent.rb +64 -0
  115. data/lib/fluent/plugin/in_dummy.rb +135 -0
  116. data/lib/fluent/plugin/in_exec.rb +149 -0
  117. data/lib/fluent/plugin/in_forward.rb +366 -0
  118. data/lib/fluent/plugin/in_gc_stat.rb +52 -0
  119. data/lib/fluent/plugin/in_http.rb +422 -0
  120. data/lib/fluent/plugin/in_monitor_agent.rb +401 -0
  121. data/lib/fluent/plugin/in_object_space.rb +90 -0
  122. data/lib/fluent/plugin/in_syslog.rb +204 -0
  123. data/lib/fluent/plugin/in_tail.rb +838 -0
  124. data/lib/fluent/plugin/in_tcp.rb +41 -0
  125. data/lib/fluent/plugin/in_udp.rb +37 -0
  126. data/lib/fluent/plugin/in_unix.rb +201 -0
  127. data/lib/fluent/plugin/input.rb +33 -0
  128. data/lib/fluent/plugin/multi_output.rb +95 -0
  129. data/lib/fluent/plugin/out_buffered_null.rb +59 -0
  130. data/lib/fluent/plugin/out_buffered_stdout.rb +70 -0
  131. data/lib/fluent/plugin/out_copy.rb +42 -0
  132. data/lib/fluent/plugin/out_exec.rb +114 -0
  133. data/lib/fluent/plugin/out_exec_filter.rb +393 -0
  134. data/lib/fluent/plugin/out_file.rb +167 -0
  135. data/lib/fluent/plugin/out_forward.rb +646 -0
  136. data/lib/fluent/plugin/out_null.rb +27 -0
  137. data/lib/fluent/plugin/out_relabel.rb +28 -0
  138. data/lib/fluent/plugin/out_roundrobin.rb +80 -0
  139. data/lib/fluent/plugin/out_stdout.rb +48 -0
  140. data/lib/fluent/plugin/out_stream.rb +130 -0
  141. data/lib/fluent/plugin/output.rb +1020 -0
  142. data/lib/fluent/plugin/owned_by_mixin.rb +42 -0
  143. data/lib/fluent/plugin/parser.rb +175 -0
  144. data/lib/fluent/plugin/parser_apache.rb +28 -0
  145. data/lib/fluent/plugin/parser_apache2.rb +84 -0
  146. data/lib/fluent/plugin/parser_apache_error.rb +26 -0
  147. data/lib/fluent/plugin/parser_csv.rb +33 -0
  148. data/lib/fluent/plugin/parser_json.rb +79 -0
  149. data/lib/fluent/plugin/parser_ltsv.rb +50 -0
  150. data/lib/fluent/plugin/parser_multiline.rb +104 -0
  151. data/lib/fluent/plugin/parser_nginx.rb +28 -0
  152. data/lib/fluent/plugin/parser_none.rb +36 -0
  153. data/lib/fluent/plugin/parser_regexp.rb +73 -0
  154. data/lib/fluent/plugin/parser_syslog.rb +82 -0
  155. data/lib/fluent/plugin/parser_tsv.rb +37 -0
  156. data/lib/fluent/plugin/socket_util.rb +22 -0
  157. data/lib/fluent/plugin/storage.rb +84 -0
  158. data/lib/fluent/plugin/storage_local.rb +132 -0
  159. data/lib/fluent/plugin/string_util.rb +22 -0
  160. data/lib/fluent/plugin_helper.rb +42 -0
  161. data/lib/fluent/plugin_helper/child_process.rb +298 -0
  162. data/lib/fluent/plugin_helper/compat_parameters.rb +224 -0
  163. data/lib/fluent/plugin_helper/event_emitter.rb +80 -0
  164. data/lib/fluent/plugin_helper/event_loop.rb +118 -0
  165. data/lib/fluent/plugin_helper/formatter.rb +149 -0
  166. data/lib/fluent/plugin_helper/inject.rb +125 -0
  167. data/lib/fluent/plugin_helper/parser.rb +147 -0
  168. data/lib/fluent/plugin_helper/retry_state.rb +177 -0
  169. data/lib/fluent/plugin_helper/storage.rb +331 -0
  170. data/lib/fluent/plugin_helper/thread.rb +147 -0
  171. data/lib/fluent/plugin_helper/timer.rb +90 -0
  172. data/lib/fluent/plugin_id.rb +63 -0
  173. data/lib/fluent/process.rb +504 -0
  174. data/lib/fluent/registry.rb +99 -0
  175. data/lib/fluent/root_agent.rb +314 -0
  176. data/lib/fluent/rpc.rb +94 -0
  177. data/lib/fluent/supervisor.rb +680 -0
  178. data/lib/fluent/system_config.rb +122 -0
  179. data/lib/fluent/test.rb +56 -0
  180. data/lib/fluent/test/base.rb +85 -0
  181. data/lib/fluent/test/driver/base.rb +179 -0
  182. data/lib/fluent/test/driver/base_owned.rb +70 -0
  183. data/lib/fluent/test/driver/base_owner.rb +125 -0
  184. data/lib/fluent/test/driver/event_feeder.rb +98 -0
  185. data/lib/fluent/test/driver/filter.rb +57 -0
  186. data/lib/fluent/test/driver/formatter.rb +30 -0
  187. data/lib/fluent/test/driver/input.rb +31 -0
  188. data/lib/fluent/test/driver/multi_output.rb +52 -0
  189. data/lib/fluent/test/driver/output.rb +76 -0
  190. data/lib/fluent/test/driver/parser.rb +30 -0
  191. data/lib/fluent/test/driver/test_event_router.rb +45 -0
  192. data/lib/fluent/test/filter_test.rb +77 -0
  193. data/lib/fluent/test/formatter_test.rb +65 -0
  194. data/lib/fluent/test/helpers.rb +79 -0
  195. data/lib/fluent/test/input_test.rb +172 -0
  196. data/lib/fluent/test/log.rb +73 -0
  197. data/lib/fluent/test/output_test.rb +156 -0
  198. data/lib/fluent/test/parser_test.rb +70 -0
  199. data/lib/fluent/time.rb +175 -0
  200. data/lib/fluent/timezone.rb +133 -0
  201. data/lib/fluent/unique_id.rb +39 -0
  202. data/lib/fluent/version.rb +21 -0
  203. data/lib/fluent/winsvc.rb +71 -0
  204. data/test/compat/test_calls_super.rb +166 -0
  205. data/test/compat/test_parser.rb +82 -0
  206. data/test/config/assertions.rb +42 -0
  207. data/test/config/test_config_parser.rb +507 -0
  208. data/test/config/test_configurable.rb +1194 -0
  209. data/test/config/test_configure_proxy.rb +386 -0
  210. data/test/config/test_dsl.rb +415 -0
  211. data/test/config/test_element.rb +403 -0
  212. data/test/config/test_literal_parser.rb +297 -0
  213. data/test/config/test_section.rb +184 -0
  214. data/test/config/test_system_config.rb +120 -0
  215. data/test/config/test_types.rb +171 -0
  216. data/test/helper.rb +119 -0
  217. data/test/plugin/data/2010/01/20100102-030405.log +0 -0
  218. data/test/plugin/data/2010/01/20100102-030406.log +0 -0
  219. data/test/plugin/data/2010/01/20100102.log +0 -0
  220. data/test/plugin/data/log/bar +0 -0
  221. data/test/plugin/data/log/foo/bar.log +0 -0
  222. data/test/plugin/data/log/test.log +0 -0
  223. data/test/plugin/test_bare_output.rb +118 -0
  224. data/test/plugin/test_base.rb +75 -0
  225. data/test/plugin/test_buf_file.rb +571 -0
  226. data/test/plugin/test_buf_memory.rb +42 -0
  227. data/test/plugin/test_buffer.rb +1200 -0
  228. data/test/plugin/test_buffer_chunk.rb +168 -0
  229. data/test/plugin/test_buffer_file_chunk.rb +771 -0
  230. data/test/plugin/test_buffer_memory_chunk.rb +265 -0
  231. data/test/plugin/test_file_util.rb +96 -0
  232. data/test/plugin/test_filter.rb +353 -0
  233. data/test/plugin/test_filter_grep.rb +119 -0
  234. data/test/plugin/test_filter_record_transformer.rb +600 -0
  235. data/test/plugin/test_filter_stdout.rb +211 -0
  236. data/test/plugin/test_formatter_csv.rb +94 -0
  237. data/test/plugin/test_formatter_json.rb +30 -0
  238. data/test/plugin/test_formatter_ltsv.rb +52 -0
  239. data/test/plugin/test_formatter_msgpack.rb +28 -0
  240. data/test/plugin/test_formatter_out_file.rb +95 -0
  241. data/test/plugin/test_formatter_single_value.rb +38 -0
  242. data/test/plugin/test_in_debug_agent.rb +28 -0
  243. data/test/plugin/test_in_dummy.rb +188 -0
  244. data/test/plugin/test_in_exec.rb +133 -0
  245. data/test/plugin/test_in_forward.rb +635 -0
  246. data/test/plugin/test_in_gc_stat.rb +39 -0
  247. data/test/plugin/test_in_http.rb +442 -0
  248. data/test/plugin/test_in_monitor_agent.rb +329 -0
  249. data/test/plugin/test_in_object_space.rb +64 -0
  250. data/test/plugin/test_in_syslog.rb +205 -0
  251. data/test/plugin/test_in_tail.rb +1001 -0
  252. data/test/plugin/test_in_tcp.rb +102 -0
  253. data/test/plugin/test_in_udp.rb +121 -0
  254. data/test/plugin/test_in_unix.rb +126 -0
  255. data/test/plugin/test_input.rb +122 -0
  256. data/test/plugin/test_multi_output.rb +180 -0
  257. data/test/plugin/test_out_buffered_null.rb +79 -0
  258. data/test/plugin/test_out_buffered_stdout.rb +122 -0
  259. data/test/plugin/test_out_copy.rb +160 -0
  260. data/test/plugin/test_out_exec.rb +155 -0
  261. data/test/plugin/test_out_exec_filter.rb +262 -0
  262. data/test/plugin/test_out_file.rb +383 -0
  263. data/test/plugin/test_out_forward.rb +590 -0
  264. data/test/plugin/test_out_null.rb +29 -0
  265. data/test/plugin/test_out_relabel.rb +28 -0
  266. data/test/plugin/test_out_roundrobin.rb +146 -0
  267. data/test/plugin/test_out_stdout.rb +92 -0
  268. data/test/plugin/test_out_stream.rb +93 -0
  269. data/test/plugin/test_output.rb +568 -0
  270. data/test/plugin/test_output_as_buffered.rb +1604 -0
  271. data/test/plugin/test_output_as_buffered_overflow.rb +250 -0
  272. data/test/plugin/test_output_as_buffered_retries.rb +839 -0
  273. data/test/plugin/test_output_as_buffered_secondary.rb +817 -0
  274. data/test/plugin/test_output_as_standard.rb +374 -0
  275. data/test/plugin/test_owned_by.rb +35 -0
  276. data/test/plugin/test_parser_apache.rb +42 -0
  277. data/test/plugin/test_parser_apache2.rb +38 -0
  278. data/test/plugin/test_parser_apache_error.rb +45 -0
  279. data/test/plugin/test_parser_base.rb +32 -0
  280. data/test/plugin/test_parser_csv.rb +104 -0
  281. data/test/plugin/test_parser_json.rb +107 -0
  282. data/test/plugin/test_parser_labeled_tsv.rb +129 -0
  283. data/test/plugin/test_parser_multiline.rb +100 -0
  284. data/test/plugin/test_parser_nginx.rb +48 -0
  285. data/test/plugin/test_parser_none.rb +53 -0
  286. data/test/plugin/test_parser_regexp.rb +277 -0
  287. data/test/plugin/test_parser_syslog.rb +66 -0
  288. data/test/plugin/test_parser_time.rb +46 -0
  289. data/test/plugin/test_parser_tsv.rb +121 -0
  290. data/test/plugin/test_storage.rb +167 -0
  291. data/test/plugin/test_storage_local.rb +8 -0
  292. data/test/plugin/test_string_util.rb +26 -0
  293. data/test/plugin_helper/test_child_process.rb +608 -0
  294. data/test/plugin_helper/test_compat_parameters.rb +242 -0
  295. data/test/plugin_helper/test_event_emitter.rb +51 -0
  296. data/test/plugin_helper/test_event_loop.rb +52 -0
  297. data/test/plugin_helper/test_formatter.rb +252 -0
  298. data/test/plugin_helper/test_inject.rb +487 -0
  299. data/test/plugin_helper/test_parser.rb +263 -0
  300. data/test/plugin_helper/test_retry_state.rb +399 -0
  301. data/test/plugin_helper/test_storage.rb +521 -0
  302. data/test/plugin_helper/test_thread.rb +164 -0
  303. data/test/plugin_helper/test_timer.rb +131 -0
  304. data/test/scripts/exec_script.rb +32 -0
  305. data/test/scripts/fluent/plugin/formatter_known.rb +8 -0
  306. data/test/scripts/fluent/plugin/out_test.rb +81 -0
  307. data/test/scripts/fluent/plugin/out_test2.rb +80 -0
  308. data/test/scripts/fluent/plugin/parser_known.rb +4 -0
  309. data/test/test_config.rb +179 -0
  310. data/test/test_configdsl.rb +148 -0
  311. data/test/test_event.rb +329 -0
  312. data/test/test_event_router.rb +331 -0
  313. data/test/test_event_time.rb +184 -0
  314. data/test/test_filter.rb +121 -0
  315. data/test/test_formatter.rb +319 -0
  316. data/test/test_input.rb +31 -0
  317. data/test/test_log.rb +572 -0
  318. data/test/test_match.rb +137 -0
  319. data/test/test_mixin.rb +351 -0
  320. data/test/test_output.rb +214 -0
  321. data/test/test_plugin_classes.rb +136 -0
  322. data/test/test_plugin_helper.rb +81 -0
  323. data/test/test_process.rb +48 -0
  324. data/test/test_root_agent.rb +278 -0
  325. data/test/test_supervisor.rb +339 -0
  326. data/test/test_time_formatter.rb +186 -0
  327. data/test/test_unique_id.rb +47 -0
  328. metadata +823 -0
@@ -0,0 +1,186 @@
1
+ require_relative 'helper'
2
+ require 'fluent/test'
3
+ require 'fluent/time'
4
+
5
+ class TimeFormatterTest < ::Test::Unit::TestCase
6
+ def with_timezone(tz)
7
+ oldtz, ENV['TZ'] = ENV['TZ'], tz
8
+ yield
9
+ ensure
10
+ ENV['TZ'] = oldtz
11
+ end
12
+
13
+ def setup
14
+ @time = Time.new(2014, 9, 27, 0, 0, 0, 0).to_i
15
+ @fmt = "%Y%m%d %H%M%z" # YYYYMMDD HHMM[+-]HHMM
16
+ end
17
+
18
+ def format(format, localtime, timezone)
19
+ formatter = Fluent::TimeFormatter.new(format, localtime, timezone)
20
+ formatter.format(@time)
21
+ end
22
+
23
+ def test_default_utc_nil
24
+ assert_equal("2014-09-27T00:00:00Z", format(nil, false, nil))
25
+ end
26
+
27
+ def test_default_utc_pHH_MM
28
+ assert_equal("2014-09-27T01:30:00+01:30", format(nil, false, "+01:30"))
29
+ end
30
+
31
+ def test_default_utc_nHH_MM
32
+ assert_equal("2014-09-26T22:30:00-01:30", format(nil, false, "-01:30"))
33
+ end
34
+
35
+ def test_default_utc_pHHMM
36
+ assert_equal("2014-09-27T02:30:00+02:30", format(nil, false, "+0230"))
37
+ end
38
+
39
+ def test_default_utc_nHHMM
40
+ assert_equal("2014-09-26T21:30:00-02:30", format(nil, false, "-0230"))
41
+ end
42
+
43
+ def test_default_utc_pHH
44
+ assert_equal("2014-09-27T03:00:00+03:00", format(nil, false, "+03"))
45
+ end
46
+
47
+ def test_default_utc_nHH
48
+ assert_equal("2014-09-26T21:00:00-03:00", format(nil, false, "-03"))
49
+ end
50
+
51
+ def test_default_utc_timezone_1
52
+ # Asia/Tokyo (+09:00) does not have daylight saving time.
53
+ assert_equal("2014-09-27T09:00:00+09:00", format(nil, false, "Asia/Tokyo"))
54
+ end
55
+
56
+ def test_default_utc_timezone_2
57
+ # Pacific/Honolulu (-10:00) does not have daylight saving time.
58
+ assert_equal("2014-09-26T14:00:00-10:00", format(nil, false, "Pacific/Honolulu"))
59
+ end
60
+
61
+ def test_default_utc_timezone_3
62
+ # America/Argentina/Buenos_Aires (-03:00) does not have daylight saving time.
63
+ assert_equal("2014-09-26T21:00:00-03:00", format(nil, false, "America/Argentina/Buenos_Aires"))
64
+ end
65
+
66
+ def test_default_utc_timezone_4
67
+ # Europe/Paris has daylight saving time. Its UTC offset is +01:00 and its
68
+ # UTC offset in DST is +02:00. In September, Europe/Paris is in DST.
69
+ assert_equal("2014-09-27T02:00:00+02:00", format(nil, false, "Europe/Paris"))
70
+ end
71
+
72
+ def test_default_utc_timezone_5
73
+ # Europe/Paris has daylight saving time. Its UTC offset is +01:00 and its
74
+ # UTC offset in DST is +02:00. In January, Europe/Paris is not in DST.
75
+ @time = Time.new(2014, 1, 24, 0, 0, 0, 0).to_i
76
+ assert_equal("2014-01-24T01:00:00+01:00", format(nil, false, "Europe/Paris"))
77
+ end
78
+
79
+ def test_default_utc_invalid
80
+ assert_equal("2014-09-27T00:00:00Z", format(nil, false, "Invalid"))
81
+ end
82
+
83
+ def test_default_localtime_nil_1
84
+ with_timezone("UTC-04") do
85
+ assert_equal("2014-09-27T04:00:00+04:00", format(nil, true, nil))
86
+ end
87
+ end
88
+
89
+ def test_default_localtime_nil_2
90
+ with_timezone("UTC+05") do
91
+ assert_equal("2014-09-26T19:00:00-05:00", format(nil, true, nil))
92
+ end
93
+ end
94
+
95
+ def test_default_localtime_timezone
96
+ # 'timezone' takes precedence over 'localtime'.
97
+ with_timezone("UTC-06") do
98
+ assert_equal("2014-09-27T07:00:00+07:00", format(nil, true, "+07"))
99
+ end
100
+ end
101
+
102
+ def test_specific_utc_nil
103
+ assert_equal("20140927 0000+0000", format(@fmt, false, nil))
104
+ end
105
+
106
+ def test_specific_utc_pHH_MM
107
+ assert_equal("20140927 0830+0830", format(@fmt, false, "+08:30"))
108
+ end
109
+
110
+ def test_specific_utc_nHH_MM
111
+ assert_equal("20140926 1430-0930", format(@fmt, false, "-09:30"))
112
+ end
113
+
114
+ def test_specific_utc_pHHMM
115
+ assert_equal("20140927 1030+1030", format(@fmt, false, "+1030"))
116
+ end
117
+
118
+ def test_specific_utc_nHHMM
119
+ assert_equal("20140926 1230-1130", format(@fmt, false, "-1130"))
120
+ end
121
+
122
+ def test_specific_utc_pHH
123
+ assert_equal("20140927 1200+1200", format(@fmt, false, "+12"))
124
+ end
125
+
126
+ def test_specific_utc_nHH
127
+ assert_equal("20140926 1100-1300", format(@fmt, false, "-13"))
128
+ end
129
+
130
+ def test_specific_utc_timezone_1
131
+ # Europe/Moscow (+04:00) does not have daylight saving time.
132
+ assert_equal("20140927 0400+0400", format(@fmt, false, "Europe/Moscow"))
133
+ end
134
+
135
+ def test_specific_utc_timezone_2
136
+ # Pacific/Galapagos (-06:00) does not have daylight saving time.
137
+ assert_equal("20140926 1800-0600", format(@fmt, false, "Pacific/Galapagos"))
138
+ end
139
+
140
+ def test_specific_utc_timezone_3
141
+ # America/Argentina/Buenos_Aires (-03:00) does not have daylight saving time.
142
+ assert_equal("20140926 2100-0300", format(@fmt, false, "America/Argentina/Buenos_Aires"))
143
+ end
144
+
145
+ def test_specific_utc_timezone_4
146
+ # America/Los_Angeles has daylight saving time. Its UTC offset is -08:00 and its
147
+ # UTC offset in DST is -07:00. In September, America/Los_Angeles is in DST.
148
+ assert_equal("20140926 1700-0700", format(@fmt, false, "America/Los_Angeles"))
149
+ end
150
+
151
+ def test_specific_utc_timezone_5
152
+ # America/Los_Angeles has daylight saving time. Its UTC offset is -08:00 and its
153
+ # UTC offset in DST is -07:00. In January, America/Los_Angeles is not in DST.
154
+ @time = Time.new(2014, 1, 24, 0, 0, 0, 0).to_i
155
+ assert_equal("20140123 1600-0800", format(@fmt, false, "America/Los_Angeles"))
156
+ end
157
+
158
+ def test_specific_utc_invalid
159
+ assert_equal("20140927 0000+0000", format(@fmt, false, "Invalid"))
160
+ end
161
+
162
+ def test_specific_localtime_nil_1
163
+ with_timezone("UTC-07") do
164
+ assert_equal("20140927 0700+0700", format(@fmt, true, nil))
165
+ end
166
+ end
167
+
168
+ def test_specific_localtime_nil_2
169
+ with_timezone("UTC+08") do
170
+ assert_equal("20140926 1600-0800", format(@fmt, true, nil))
171
+ end
172
+ end
173
+
174
+ def test_specific_localtime_timezone
175
+ # 'timezone' takes precedence over 'localtime'.
176
+ with_timezone("UTC-09") do
177
+ assert_equal("20140926 1400-1000", format(@fmt, true, "-10"))
178
+ end
179
+ end
180
+
181
+ def test_format_with_subsec
182
+ time = Fluent::EventTime.new(@time)
183
+ formatter = Fluent::TimeFormatter.new("%Y%m%d %H%M.%N", false, nil)
184
+ assert_equal("20140927 0000.000000000", formatter.format(time))
185
+ end
186
+ end
@@ -0,0 +1,47 @@
1
+ require_relative 'helper'
2
+ require 'fluent/plugin/base'
3
+ require 'fluent/unique_id'
4
+
5
+ module UniqueIdTestEnv
6
+ class Dummy < Fluent::Plugin::Base
7
+ include Fluent::UniqueId::Mixin
8
+ end
9
+ end
10
+
11
+ class UniqueIdTest < Test::Unit::TestCase
12
+ sub_test_case 'module used directly' do
13
+ test '.generate generates 128bit length unique id (16bytes)' do
14
+ assert_equal 16, Fluent::UniqueId.generate.bytesize
15
+ ary = []
16
+ 100_000.times do
17
+ ary << Fluent::UniqueId.generate
18
+ end
19
+ assert_equal 100_000, ary.uniq.size
20
+ end
21
+
22
+ test '.hex dumps 16bytes id into 32 chars' do
23
+ assert_equal 32, Fluent::UniqueId.hex(Fluent::UniqueId.generate).size
24
+ assert(Fluent::UniqueId.hex(Fluent::UniqueId.generate) =~ /^[0-9a-z]{32}$/)
25
+ end
26
+ end
27
+
28
+ sub_test_case 'mixin' do
29
+ setup do
30
+ @i = UniqueIdTestEnv::Dummy.new
31
+ end
32
+
33
+ test '#generate_unique_id generates 128bit length id (16bytes)' do
34
+ assert_equal 16, @i.generate_unique_id.bytesize
35
+ ary = []
36
+ 100_000.times do
37
+ ary << @i.generate_unique_id
38
+ end
39
+ assert_equal 100_000, ary.uniq.size
40
+ end
41
+
42
+ test '#dump_unique_id_hex dumps 16bytes id into 32 chars' do
43
+ assert_equal 32, @i.dump_unique_id_hex(@i.generate_unique_id).size
44
+ assert(@i.dump_unique_id_hex(@i.generate_unique_id) =~ /^[0-9a-z]{32}$/)
45
+ end
46
+ end
47
+ end
metadata ADDED
@@ -0,0 +1,823 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fluentd
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.14.4
5
+ platform: x86-mingw32
6
+ authors:
7
+ - Sadayuki Furuhashi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-08-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: msgpack
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.7.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.0.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 0.7.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 2.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: yajl-ruby
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: cool.io
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: 1.4.5
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: 1.4.5
61
+ - !ruby/object:Gem::Dependency
62
+ name: serverengine
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '2.0'
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '2.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: http_parser.rb
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: 0.5.1
82
+ - - "<"
83
+ - !ruby/object:Gem::Version
84
+ version: 0.7.0
85
+ type: :runtime
86
+ prerelease: false
87
+ version_requirements: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: 0.5.1
92
+ - - "<"
93
+ - !ruby/object:Gem::Version
94
+ version: 0.7.0
95
+ - !ruby/object:Gem::Dependency
96
+ name: sigdump
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: 0.2.2
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: 0.2.2
109
+ - !ruby/object:Gem::Dependency
110
+ name: tzinfo
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '1.0'
116
+ type: :runtime
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '1.0'
123
+ - !ruby/object:Gem::Dependency
124
+ name: tzinfo-data
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: '1.0'
130
+ type: :runtime
131
+ prerelease: false
132
+ version_requirements: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - "~>"
135
+ - !ruby/object:Gem::Version
136
+ version: '1.0'
137
+ - !ruby/object:Gem::Dependency
138
+ name: strptime
139
+ requirement: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - "~>"
142
+ - !ruby/object:Gem::Version
143
+ version: 0.1.7
144
+ type: :runtime
145
+ prerelease: false
146
+ version_requirements: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - "~>"
149
+ - !ruby/object:Gem::Version
150
+ version: 0.1.7
151
+ - !ruby/object:Gem::Dependency
152
+ name: win32-service
153
+ requirement: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - "~>"
156
+ - !ruby/object:Gem::Version
157
+ version: 0.8.3
158
+ type: :runtime
159
+ prerelease: false
160
+ version_requirements: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - "~>"
163
+ - !ruby/object:Gem::Version
164
+ version: 0.8.3
165
+ - !ruby/object:Gem::Dependency
166
+ name: win32-ipc
167
+ requirement: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - "~>"
170
+ - !ruby/object:Gem::Version
171
+ version: 0.6.1
172
+ type: :runtime
173
+ prerelease: false
174
+ version_requirements: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - "~>"
177
+ - !ruby/object:Gem::Version
178
+ version: 0.6.1
179
+ - !ruby/object:Gem::Dependency
180
+ name: win32-event
181
+ requirement: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - "~>"
184
+ - !ruby/object:Gem::Version
185
+ version: 0.6.1
186
+ type: :runtime
187
+ prerelease: false
188
+ version_requirements: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - "~>"
191
+ - !ruby/object:Gem::Version
192
+ version: 0.6.1
193
+ - !ruby/object:Gem::Dependency
194
+ name: windows-pr
195
+ requirement: !ruby/object:Gem::Requirement
196
+ requirements:
197
+ - - "~>"
198
+ - !ruby/object:Gem::Version
199
+ version: 1.2.5
200
+ type: :runtime
201
+ prerelease: false
202
+ version_requirements: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - "~>"
205
+ - !ruby/object:Gem::Version
206
+ version: 1.2.5
207
+ - !ruby/object:Gem::Dependency
208
+ name: rake
209
+ requirement: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - "~>"
212
+ - !ruby/object:Gem::Version
213
+ version: '11.0'
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - "~>"
219
+ - !ruby/object:Gem::Version
220
+ version: '11.0'
221
+ - !ruby/object:Gem::Dependency
222
+ name: flexmock
223
+ requirement: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ - - "~>"
226
+ - !ruby/object:Gem::Version
227
+ version: '2.0'
228
+ type: :development
229
+ prerelease: false
230
+ version_requirements: !ruby/object:Gem::Requirement
231
+ requirements:
232
+ - - "~>"
233
+ - !ruby/object:Gem::Version
234
+ version: '2.0'
235
+ - !ruby/object:Gem::Dependency
236
+ name: parallel_tests
237
+ requirement: !ruby/object:Gem::Requirement
238
+ requirements:
239
+ - - "~>"
240
+ - !ruby/object:Gem::Version
241
+ version: 0.15.3
242
+ type: :development
243
+ prerelease: false
244
+ version_requirements: !ruby/object:Gem::Requirement
245
+ requirements:
246
+ - - "~>"
247
+ - !ruby/object:Gem::Version
248
+ version: 0.15.3
249
+ - !ruby/object:Gem::Dependency
250
+ name: simplecov
251
+ requirement: !ruby/object:Gem::Requirement
252
+ requirements:
253
+ - - "~>"
254
+ - !ruby/object:Gem::Version
255
+ version: '0.7'
256
+ type: :development
257
+ prerelease: false
258
+ version_requirements: !ruby/object:Gem::Requirement
259
+ requirements:
260
+ - - "~>"
261
+ - !ruby/object:Gem::Version
262
+ version: '0.7'
263
+ - !ruby/object:Gem::Dependency
264
+ name: rr
265
+ requirement: !ruby/object:Gem::Requirement
266
+ requirements:
267
+ - - "~>"
268
+ - !ruby/object:Gem::Version
269
+ version: '1.0'
270
+ type: :development
271
+ prerelease: false
272
+ version_requirements: !ruby/object:Gem::Requirement
273
+ requirements:
274
+ - - "~>"
275
+ - !ruby/object:Gem::Version
276
+ version: '1.0'
277
+ - !ruby/object:Gem::Dependency
278
+ name: timecop
279
+ requirement: !ruby/object:Gem::Requirement
280
+ requirements:
281
+ - - "~>"
282
+ - !ruby/object:Gem::Version
283
+ version: '0.3'
284
+ type: :development
285
+ prerelease: false
286
+ version_requirements: !ruby/object:Gem::Requirement
287
+ requirements:
288
+ - - "~>"
289
+ - !ruby/object:Gem::Version
290
+ version: '0.3'
291
+ - !ruby/object:Gem::Dependency
292
+ name: test-unit
293
+ requirement: !ruby/object:Gem::Requirement
294
+ requirements:
295
+ - - "~>"
296
+ - !ruby/object:Gem::Version
297
+ version: '3.2'
298
+ type: :development
299
+ prerelease: false
300
+ version_requirements: !ruby/object:Gem::Requirement
301
+ requirements:
302
+ - - "~>"
303
+ - !ruby/object:Gem::Version
304
+ version: '3.2'
305
+ - !ruby/object:Gem::Dependency
306
+ name: test-unit-rr
307
+ requirement: !ruby/object:Gem::Requirement
308
+ requirements:
309
+ - - "~>"
310
+ - !ruby/object:Gem::Version
311
+ version: '1.0'
312
+ type: :development
313
+ prerelease: false
314
+ version_requirements: !ruby/object:Gem::Requirement
315
+ requirements:
316
+ - - "~>"
317
+ - !ruby/object:Gem::Version
318
+ version: '1.0'
319
+ - !ruby/object:Gem::Dependency
320
+ name: oj
321
+ requirement: !ruby/object:Gem::Requirement
322
+ requirements:
323
+ - - "~>"
324
+ - !ruby/object:Gem::Version
325
+ version: '2.14'
326
+ type: :development
327
+ prerelease: false
328
+ version_requirements: !ruby/object:Gem::Requirement
329
+ requirements:
330
+ - - "~>"
331
+ - !ruby/object:Gem::Version
332
+ version: '2.14'
333
+ description: Fluentd is an open source data collector designed to scale and simplify
334
+ log management. It can collect, process and ship many kinds of data in near real-time.
335
+ email:
336
+ - frsyuki@gmail.com
337
+ executables:
338
+ - fluent-cat
339
+ - fluent-debug
340
+ - fluent-gem
341
+ - fluentd
342
+ extensions: []
343
+ extra_rdoc_files: []
344
+ files:
345
+ - ".github/ISSUE_TEMPLATE.md"
346
+ - ".gitignore"
347
+ - ".travis.yml"
348
+ - AUTHORS
349
+ - CONTRIBUTING.md
350
+ - COPYING
351
+ - ChangeLog
352
+ - Gemfile
353
+ - README.md
354
+ - Rakefile
355
+ - Vagrantfile
356
+ - appveyor.yml
357
+ - bin/fluent-cat
358
+ - bin/fluent-debug
359
+ - bin/fluent-gem
360
+ - bin/fluentd
361
+ - example/copy_roundrobin.conf
362
+ - example/filter_stdout.conf
363
+ - example/in_forward.conf
364
+ - example/in_http.conf
365
+ - example/in_out_forward.conf
366
+ - example/in_syslog.conf
367
+ - example/in_tail.conf
368
+ - example/in_tcp.conf
369
+ - example/in_udp.conf
370
+ - example/multi_filters.conf
371
+ - example/out_buffered_null.conf
372
+ - example/out_copy.conf
373
+ - example/out_file.conf
374
+ - example/out_forward.conf
375
+ - example/out_forward_buf_file.conf
376
+ - example/v0_12_filter.conf
377
+ - example/v1_literal_example.conf
378
+ - fluent.conf
379
+ - fluentd.gemspec
380
+ - lib/fluent/agent.rb
381
+ - lib/fluent/command/bundler_injection.rb
382
+ - lib/fluent/command/cat.rb
383
+ - lib/fluent/command/debug.rb
384
+ - lib/fluent/command/fluentd.rb
385
+ - lib/fluent/compat/call_super_mixin.rb
386
+ - lib/fluent/compat/exec_util.rb
387
+ - lib/fluent/compat/file_util.rb
388
+ - lib/fluent/compat/filter.rb
389
+ - lib/fluent/compat/formatter.rb
390
+ - lib/fluent/compat/formatter_utils.rb
391
+ - lib/fluent/compat/handle_tag_and_time_mixin.rb
392
+ - lib/fluent/compat/handle_tag_name_mixin.rb
393
+ - lib/fluent/compat/input.rb
394
+ - lib/fluent/compat/output.rb
395
+ - lib/fluent/compat/output_chain.rb
396
+ - lib/fluent/compat/parser.rb
397
+ - lib/fluent/compat/parser_utils.rb
398
+ - lib/fluent/compat/propagate_default.rb
399
+ - lib/fluent/compat/record_filter_mixin.rb
400
+ - lib/fluent/compat/set_tag_key_mixin.rb
401
+ - lib/fluent/compat/set_time_key_mixin.rb
402
+ - lib/fluent/compat/socket_util.rb
403
+ - lib/fluent/compat/string_util.rb
404
+ - lib/fluent/compat/structured_format_mixin.rb
405
+ - lib/fluent/compat/type_converter.rb
406
+ - lib/fluent/config.rb
407
+ - lib/fluent/config/basic_parser.rb
408
+ - lib/fluent/config/configure_proxy.rb
409
+ - lib/fluent/config/dsl.rb
410
+ - lib/fluent/config/element.rb
411
+ - lib/fluent/config/error.rb
412
+ - lib/fluent/config/literal_parser.rb
413
+ - lib/fluent/config/parser.rb
414
+ - lib/fluent/config/section.rb
415
+ - lib/fluent/config/types.rb
416
+ - lib/fluent/config/v1_parser.rb
417
+ - lib/fluent/configurable.rb
418
+ - lib/fluent/daemon.rb
419
+ - lib/fluent/engine.rb
420
+ - lib/fluent/env.rb
421
+ - lib/fluent/event.rb
422
+ - lib/fluent/event_router.rb
423
+ - lib/fluent/filter.rb
424
+ - lib/fluent/formatter.rb
425
+ - lib/fluent/input.rb
426
+ - lib/fluent/label.rb
427
+ - lib/fluent/load.rb
428
+ - lib/fluent/log.rb
429
+ - lib/fluent/match.rb
430
+ - lib/fluent/mixin.rb
431
+ - lib/fluent/msgpack_factory.rb
432
+ - lib/fluent/output.rb
433
+ - lib/fluent/output_chain.rb
434
+ - lib/fluent/parser.rb
435
+ - lib/fluent/plugin.rb
436
+ - lib/fluent/plugin/bare_output.rb
437
+ - lib/fluent/plugin/base.rb
438
+ - lib/fluent/plugin/buf_file.rb
439
+ - lib/fluent/plugin/buf_memory.rb
440
+ - lib/fluent/plugin/buffer.rb
441
+ - lib/fluent/plugin/buffer/chunk.rb
442
+ - lib/fluent/plugin/buffer/file_chunk.rb
443
+ - lib/fluent/plugin/buffer/memory_chunk.rb
444
+ - lib/fluent/plugin/exec_util.rb
445
+ - lib/fluent/plugin/file_util.rb
446
+ - lib/fluent/plugin/file_wrapper.rb
447
+ - lib/fluent/plugin/filter.rb
448
+ - lib/fluent/plugin/filter_grep.rb
449
+ - lib/fluent/plugin/filter_record_transformer.rb
450
+ - lib/fluent/plugin/filter_stdout.rb
451
+ - lib/fluent/plugin/formatter.rb
452
+ - lib/fluent/plugin/formatter_csv.rb
453
+ - lib/fluent/plugin/formatter_hash.rb
454
+ - lib/fluent/plugin/formatter_json.rb
455
+ - lib/fluent/plugin/formatter_ltsv.rb
456
+ - lib/fluent/plugin/formatter_msgpack.rb
457
+ - lib/fluent/plugin/formatter_out_file.rb
458
+ - lib/fluent/plugin/formatter_single_value.rb
459
+ - lib/fluent/plugin/formatter_stdout.rb
460
+ - lib/fluent/plugin/in_debug_agent.rb
461
+ - lib/fluent/plugin/in_dummy.rb
462
+ - lib/fluent/plugin/in_exec.rb
463
+ - lib/fluent/plugin/in_forward.rb
464
+ - lib/fluent/plugin/in_gc_stat.rb
465
+ - lib/fluent/plugin/in_http.rb
466
+ - lib/fluent/plugin/in_monitor_agent.rb
467
+ - lib/fluent/plugin/in_object_space.rb
468
+ - lib/fluent/plugin/in_syslog.rb
469
+ - lib/fluent/plugin/in_tail.rb
470
+ - lib/fluent/plugin/in_tcp.rb
471
+ - lib/fluent/plugin/in_udp.rb
472
+ - lib/fluent/plugin/in_unix.rb
473
+ - lib/fluent/plugin/input.rb
474
+ - lib/fluent/plugin/multi_output.rb
475
+ - lib/fluent/plugin/out_buffered_null.rb
476
+ - lib/fluent/plugin/out_buffered_stdout.rb
477
+ - lib/fluent/plugin/out_copy.rb
478
+ - lib/fluent/plugin/out_exec.rb
479
+ - lib/fluent/plugin/out_exec_filter.rb
480
+ - lib/fluent/plugin/out_file.rb
481
+ - lib/fluent/plugin/out_forward.rb
482
+ - lib/fluent/plugin/out_null.rb
483
+ - lib/fluent/plugin/out_relabel.rb
484
+ - lib/fluent/plugin/out_roundrobin.rb
485
+ - lib/fluent/plugin/out_stdout.rb
486
+ - lib/fluent/plugin/out_stream.rb
487
+ - lib/fluent/plugin/output.rb
488
+ - lib/fluent/plugin/owned_by_mixin.rb
489
+ - lib/fluent/plugin/parser.rb
490
+ - lib/fluent/plugin/parser_apache.rb
491
+ - lib/fluent/plugin/parser_apache2.rb
492
+ - lib/fluent/plugin/parser_apache_error.rb
493
+ - lib/fluent/plugin/parser_csv.rb
494
+ - lib/fluent/plugin/parser_json.rb
495
+ - lib/fluent/plugin/parser_ltsv.rb
496
+ - lib/fluent/plugin/parser_multiline.rb
497
+ - lib/fluent/plugin/parser_nginx.rb
498
+ - lib/fluent/plugin/parser_none.rb
499
+ - lib/fluent/plugin/parser_regexp.rb
500
+ - lib/fluent/plugin/parser_syslog.rb
501
+ - lib/fluent/plugin/parser_tsv.rb
502
+ - lib/fluent/plugin/socket_util.rb
503
+ - lib/fluent/plugin/storage.rb
504
+ - lib/fluent/plugin/storage_local.rb
505
+ - lib/fluent/plugin/string_util.rb
506
+ - lib/fluent/plugin_helper.rb
507
+ - lib/fluent/plugin_helper/child_process.rb
508
+ - lib/fluent/plugin_helper/compat_parameters.rb
509
+ - lib/fluent/plugin_helper/event_emitter.rb
510
+ - lib/fluent/plugin_helper/event_loop.rb
511
+ - lib/fluent/plugin_helper/formatter.rb
512
+ - lib/fluent/plugin_helper/inject.rb
513
+ - lib/fluent/plugin_helper/parser.rb
514
+ - lib/fluent/plugin_helper/retry_state.rb
515
+ - lib/fluent/plugin_helper/storage.rb
516
+ - lib/fluent/plugin_helper/thread.rb
517
+ - lib/fluent/plugin_helper/timer.rb
518
+ - lib/fluent/plugin_id.rb
519
+ - lib/fluent/process.rb
520
+ - lib/fluent/registry.rb
521
+ - lib/fluent/root_agent.rb
522
+ - lib/fluent/rpc.rb
523
+ - lib/fluent/supervisor.rb
524
+ - lib/fluent/system_config.rb
525
+ - lib/fluent/test.rb
526
+ - lib/fluent/test/base.rb
527
+ - lib/fluent/test/driver/base.rb
528
+ - lib/fluent/test/driver/base_owned.rb
529
+ - lib/fluent/test/driver/base_owner.rb
530
+ - lib/fluent/test/driver/event_feeder.rb
531
+ - lib/fluent/test/driver/filter.rb
532
+ - lib/fluent/test/driver/formatter.rb
533
+ - lib/fluent/test/driver/input.rb
534
+ - lib/fluent/test/driver/multi_output.rb
535
+ - lib/fluent/test/driver/output.rb
536
+ - lib/fluent/test/driver/parser.rb
537
+ - lib/fluent/test/driver/test_event_router.rb
538
+ - lib/fluent/test/filter_test.rb
539
+ - lib/fluent/test/formatter_test.rb
540
+ - lib/fluent/test/helpers.rb
541
+ - lib/fluent/test/input_test.rb
542
+ - lib/fluent/test/log.rb
543
+ - lib/fluent/test/output_test.rb
544
+ - lib/fluent/test/parser_test.rb
545
+ - lib/fluent/time.rb
546
+ - lib/fluent/timezone.rb
547
+ - lib/fluent/unique_id.rb
548
+ - lib/fluent/version.rb
549
+ - lib/fluent/winsvc.rb
550
+ - test/compat/test_calls_super.rb
551
+ - test/compat/test_parser.rb
552
+ - test/config/assertions.rb
553
+ - test/config/test_config_parser.rb
554
+ - test/config/test_configurable.rb
555
+ - test/config/test_configure_proxy.rb
556
+ - test/config/test_dsl.rb
557
+ - test/config/test_element.rb
558
+ - test/config/test_literal_parser.rb
559
+ - test/config/test_section.rb
560
+ - test/config/test_system_config.rb
561
+ - test/config/test_types.rb
562
+ - test/helper.rb
563
+ - test/plugin/data/2010/01/20100102-030405.log
564
+ - test/plugin/data/2010/01/20100102-030406.log
565
+ - test/plugin/data/2010/01/20100102.log
566
+ - test/plugin/data/log/bar
567
+ - test/plugin/data/log/foo/bar.log
568
+ - test/plugin/data/log/test.log
569
+ - test/plugin/test_bare_output.rb
570
+ - test/plugin/test_base.rb
571
+ - test/plugin/test_buf_file.rb
572
+ - test/plugin/test_buf_memory.rb
573
+ - test/plugin/test_buffer.rb
574
+ - test/plugin/test_buffer_chunk.rb
575
+ - test/plugin/test_buffer_file_chunk.rb
576
+ - test/plugin/test_buffer_memory_chunk.rb
577
+ - test/plugin/test_file_util.rb
578
+ - test/plugin/test_filter.rb
579
+ - test/plugin/test_filter_grep.rb
580
+ - test/plugin/test_filter_record_transformer.rb
581
+ - test/plugin/test_filter_stdout.rb
582
+ - test/plugin/test_formatter_csv.rb
583
+ - test/plugin/test_formatter_json.rb
584
+ - test/plugin/test_formatter_ltsv.rb
585
+ - test/plugin/test_formatter_msgpack.rb
586
+ - test/plugin/test_formatter_out_file.rb
587
+ - test/plugin/test_formatter_single_value.rb
588
+ - test/plugin/test_in_debug_agent.rb
589
+ - test/plugin/test_in_dummy.rb
590
+ - test/plugin/test_in_exec.rb
591
+ - test/plugin/test_in_forward.rb
592
+ - test/plugin/test_in_gc_stat.rb
593
+ - test/plugin/test_in_http.rb
594
+ - test/plugin/test_in_monitor_agent.rb
595
+ - test/plugin/test_in_object_space.rb
596
+ - test/plugin/test_in_syslog.rb
597
+ - test/plugin/test_in_tail.rb
598
+ - test/plugin/test_in_tcp.rb
599
+ - test/plugin/test_in_udp.rb
600
+ - test/plugin/test_in_unix.rb
601
+ - test/plugin/test_input.rb
602
+ - test/plugin/test_multi_output.rb
603
+ - test/plugin/test_out_buffered_null.rb
604
+ - test/plugin/test_out_buffered_stdout.rb
605
+ - test/plugin/test_out_copy.rb
606
+ - test/plugin/test_out_exec.rb
607
+ - test/plugin/test_out_exec_filter.rb
608
+ - test/plugin/test_out_file.rb
609
+ - test/plugin/test_out_forward.rb
610
+ - test/plugin/test_out_null.rb
611
+ - test/plugin/test_out_relabel.rb
612
+ - test/plugin/test_out_roundrobin.rb
613
+ - test/plugin/test_out_stdout.rb
614
+ - test/plugin/test_out_stream.rb
615
+ - test/plugin/test_output.rb
616
+ - test/plugin/test_output_as_buffered.rb
617
+ - test/plugin/test_output_as_buffered_overflow.rb
618
+ - test/plugin/test_output_as_buffered_retries.rb
619
+ - test/plugin/test_output_as_buffered_secondary.rb
620
+ - test/plugin/test_output_as_standard.rb
621
+ - test/plugin/test_owned_by.rb
622
+ - test/plugin/test_parser_apache.rb
623
+ - test/plugin/test_parser_apache2.rb
624
+ - test/plugin/test_parser_apache_error.rb
625
+ - test/plugin/test_parser_base.rb
626
+ - test/plugin/test_parser_csv.rb
627
+ - test/plugin/test_parser_json.rb
628
+ - test/plugin/test_parser_labeled_tsv.rb
629
+ - test/plugin/test_parser_multiline.rb
630
+ - test/plugin/test_parser_nginx.rb
631
+ - test/plugin/test_parser_none.rb
632
+ - test/plugin/test_parser_regexp.rb
633
+ - test/plugin/test_parser_syslog.rb
634
+ - test/plugin/test_parser_time.rb
635
+ - test/plugin/test_parser_tsv.rb
636
+ - test/plugin/test_storage.rb
637
+ - test/plugin/test_storage_local.rb
638
+ - test/plugin/test_string_util.rb
639
+ - test/plugin_helper/test_child_process.rb
640
+ - test/plugin_helper/test_compat_parameters.rb
641
+ - test/plugin_helper/test_event_emitter.rb
642
+ - test/plugin_helper/test_event_loop.rb
643
+ - test/plugin_helper/test_formatter.rb
644
+ - test/plugin_helper/test_inject.rb
645
+ - test/plugin_helper/test_parser.rb
646
+ - test/plugin_helper/test_retry_state.rb
647
+ - test/plugin_helper/test_storage.rb
648
+ - test/plugin_helper/test_thread.rb
649
+ - test/plugin_helper/test_timer.rb
650
+ - test/scripts/exec_script.rb
651
+ - test/scripts/fluent/plugin/formatter_known.rb
652
+ - test/scripts/fluent/plugin/out_test.rb
653
+ - test/scripts/fluent/plugin/out_test2.rb
654
+ - test/scripts/fluent/plugin/parser_known.rb
655
+ - test/test_config.rb
656
+ - test/test_configdsl.rb
657
+ - test/test_event.rb
658
+ - test/test_event_router.rb
659
+ - test/test_event_time.rb
660
+ - test/test_filter.rb
661
+ - test/test_formatter.rb
662
+ - test/test_input.rb
663
+ - test/test_log.rb
664
+ - test/test_match.rb
665
+ - test/test_mixin.rb
666
+ - test/test_output.rb
667
+ - test/test_plugin_classes.rb
668
+ - test/test_plugin_helper.rb
669
+ - test/test_process.rb
670
+ - test/test_root_agent.rb
671
+ - test/test_supervisor.rb
672
+ - test/test_time_formatter.rb
673
+ - test/test_unique_id.rb
674
+ homepage: http://fluentd.org/
675
+ licenses:
676
+ - Apache-2.0
677
+ metadata: {}
678
+ post_install_message:
679
+ rdoc_options: []
680
+ require_paths:
681
+ - lib
682
+ required_ruby_version: !ruby/object:Gem::Requirement
683
+ requirements:
684
+ - - ">="
685
+ - !ruby/object:Gem::Version
686
+ version: '2.1'
687
+ required_rubygems_version: !ruby/object:Gem::Requirement
688
+ requirements:
689
+ - - ">="
690
+ - !ruby/object:Gem::Version
691
+ version: '0'
692
+ requirements: []
693
+ rubyforge_project:
694
+ rubygems_version: 2.5.1
695
+ signing_key:
696
+ specification_version: 4
697
+ summary: Fluentd event collector
698
+ test_files:
699
+ - test/compat/test_calls_super.rb
700
+ - test/compat/test_parser.rb
701
+ - test/config/assertions.rb
702
+ - test/config/test_config_parser.rb
703
+ - test/config/test_configurable.rb
704
+ - test/config/test_configure_proxy.rb
705
+ - test/config/test_dsl.rb
706
+ - test/config/test_element.rb
707
+ - test/config/test_literal_parser.rb
708
+ - test/config/test_section.rb
709
+ - test/config/test_system_config.rb
710
+ - test/config/test_types.rb
711
+ - test/helper.rb
712
+ - test/plugin/data/2010/01/20100102-030405.log
713
+ - test/plugin/data/2010/01/20100102-030406.log
714
+ - test/plugin/data/2010/01/20100102.log
715
+ - test/plugin/data/log/bar
716
+ - test/plugin/data/log/foo/bar.log
717
+ - test/plugin/data/log/test.log
718
+ - test/plugin/test_bare_output.rb
719
+ - test/plugin/test_base.rb
720
+ - test/plugin/test_buf_file.rb
721
+ - test/plugin/test_buf_memory.rb
722
+ - test/plugin/test_buffer.rb
723
+ - test/plugin/test_buffer_chunk.rb
724
+ - test/plugin/test_buffer_file_chunk.rb
725
+ - test/plugin/test_buffer_memory_chunk.rb
726
+ - test/plugin/test_file_util.rb
727
+ - test/plugin/test_filter.rb
728
+ - test/plugin/test_filter_grep.rb
729
+ - test/plugin/test_filter_record_transformer.rb
730
+ - test/plugin/test_filter_stdout.rb
731
+ - test/plugin/test_formatter_csv.rb
732
+ - test/plugin/test_formatter_json.rb
733
+ - test/plugin/test_formatter_ltsv.rb
734
+ - test/plugin/test_formatter_msgpack.rb
735
+ - test/plugin/test_formatter_out_file.rb
736
+ - test/plugin/test_formatter_single_value.rb
737
+ - test/plugin/test_in_debug_agent.rb
738
+ - test/plugin/test_in_dummy.rb
739
+ - test/plugin/test_in_exec.rb
740
+ - test/plugin/test_in_forward.rb
741
+ - test/plugin/test_in_gc_stat.rb
742
+ - test/plugin/test_in_http.rb
743
+ - test/plugin/test_in_monitor_agent.rb
744
+ - test/plugin/test_in_object_space.rb
745
+ - test/plugin/test_in_syslog.rb
746
+ - test/plugin/test_in_tail.rb
747
+ - test/plugin/test_in_tcp.rb
748
+ - test/plugin/test_in_udp.rb
749
+ - test/plugin/test_in_unix.rb
750
+ - test/plugin/test_input.rb
751
+ - test/plugin/test_multi_output.rb
752
+ - test/plugin/test_out_buffered_null.rb
753
+ - test/plugin/test_out_buffered_stdout.rb
754
+ - test/plugin/test_out_copy.rb
755
+ - test/plugin/test_out_exec.rb
756
+ - test/plugin/test_out_exec_filter.rb
757
+ - test/plugin/test_out_file.rb
758
+ - test/plugin/test_out_forward.rb
759
+ - test/plugin/test_out_null.rb
760
+ - test/plugin/test_out_relabel.rb
761
+ - test/plugin/test_out_roundrobin.rb
762
+ - test/plugin/test_out_stdout.rb
763
+ - test/plugin/test_out_stream.rb
764
+ - test/plugin/test_output.rb
765
+ - test/plugin/test_output_as_buffered.rb
766
+ - test/plugin/test_output_as_buffered_overflow.rb
767
+ - test/plugin/test_output_as_buffered_retries.rb
768
+ - test/plugin/test_output_as_buffered_secondary.rb
769
+ - test/plugin/test_output_as_standard.rb
770
+ - test/plugin/test_owned_by.rb
771
+ - test/plugin/test_parser_apache.rb
772
+ - test/plugin/test_parser_apache2.rb
773
+ - test/plugin/test_parser_apache_error.rb
774
+ - test/plugin/test_parser_base.rb
775
+ - test/plugin/test_parser_csv.rb
776
+ - test/plugin/test_parser_json.rb
777
+ - test/plugin/test_parser_labeled_tsv.rb
778
+ - test/plugin/test_parser_multiline.rb
779
+ - test/plugin/test_parser_nginx.rb
780
+ - test/plugin/test_parser_none.rb
781
+ - test/plugin/test_parser_regexp.rb
782
+ - test/plugin/test_parser_syslog.rb
783
+ - test/plugin/test_parser_time.rb
784
+ - test/plugin/test_parser_tsv.rb
785
+ - test/plugin/test_storage.rb
786
+ - test/plugin/test_storage_local.rb
787
+ - test/plugin/test_string_util.rb
788
+ - test/plugin_helper/test_child_process.rb
789
+ - test/plugin_helper/test_compat_parameters.rb
790
+ - test/plugin_helper/test_event_emitter.rb
791
+ - test/plugin_helper/test_event_loop.rb
792
+ - test/plugin_helper/test_formatter.rb
793
+ - test/plugin_helper/test_inject.rb
794
+ - test/plugin_helper/test_parser.rb
795
+ - test/plugin_helper/test_retry_state.rb
796
+ - test/plugin_helper/test_storage.rb
797
+ - test/plugin_helper/test_thread.rb
798
+ - test/plugin_helper/test_timer.rb
799
+ - test/scripts/exec_script.rb
800
+ - test/scripts/fluent/plugin/formatter_known.rb
801
+ - test/scripts/fluent/plugin/out_test.rb
802
+ - test/scripts/fluent/plugin/out_test2.rb
803
+ - test/scripts/fluent/plugin/parser_known.rb
804
+ - test/test_config.rb
805
+ - test/test_configdsl.rb
806
+ - test/test_event.rb
807
+ - test/test_event_router.rb
808
+ - test/test_event_time.rb
809
+ - test/test_filter.rb
810
+ - test/test_formatter.rb
811
+ - test/test_input.rb
812
+ - test/test_log.rb
813
+ - test/test_match.rb
814
+ - test/test_mixin.rb
815
+ - test/test_output.rb
816
+ - test/test_plugin_classes.rb
817
+ - test/test_plugin_helper.rb
818
+ - test/test_process.rb
819
+ - test/test_root_agent.rb
820
+ - test/test_supervisor.rb
821
+ - test/test_time_formatter.rb
822
+ - test/test_unique_id.rb
823
+ has_rdoc: false