fluent-plugin-cf_query_filter 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2832fe4fd20a86b67e27422eb40e31e663e522a1
4
- data.tar.gz: ff90cc712d30f1f584160aae3262f5c24fb661f4
3
+ metadata.gz: da5e42f0b7b000feee420df5388905e32edce6e5
4
+ data.tar.gz: 47ece3c384270279036ae5cc0d988fdd232555ed
5
5
  SHA512:
6
- metadata.gz: af2a90d5fcc717987334f73ff458e6bac1d53a7033b5313a93bdc96560fa61f0f05278af3122182875522bd59468b97430a46d577f8c8c587c3165207e8cfdcd
7
- data.tar.gz: 7b95051fe1d7cce3e8c5ef905dfcbe204ae9e544da0e2dac598cbfd2c9f87c2c7b9999480a889f2b64e9427595226b22f97f4910c89c45cab72d050deb09f006
6
+ metadata.gz: e5ec0fa93a606e5f21e37f4da2ca5f473378f9e453cc222f300c6b582a61919e24fdc0a4b5b7ee7fe6a5454d022739b7d132ffc1b21473b8f395018847a4fbb3
7
+ data.tar.gz: e27a6de90989518d356d8233412a52c53ec49b709f48a01992c011bf0006b9150a8d1016e78bb3683107e59df86c660e82643b9b74b024dce1e108cd60611c2b
data/README.md CHANGED
@@ -1,9 +1,5 @@
1
1
  # Fluent::Plugin::CfQueryFilter
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/fluent/plugin/cf_query_filter`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
3
  ## Installation
8
4
 
9
5
  Add this line to your application's Gemfile:
@@ -20,20 +16,33 @@ Or install it yourself as:
20
16
 
21
17
  $ gem install fluent-plugin-cf_query_filter
22
18
 
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
19
+ ## Configuration
28
20
 
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
21
+ ```
22
+ ## File input
23
+ <source>
24
+ @type tail
25
+ path /var/log/cloudfront.log
26
+ pos_file /var/log/cloudfront.pos
27
+ tag cloudfront.access
28
+ format tsv
29
+ keys day,time,x_edge_location,sc_bytes,c_ip,cs_method,cs_Host,cs_uri_stem,sc_status,cs_Referer,cs_User_Agent,cs_uri_query,cs_Cookie,x_edge_result_type,x_edge_request_id,x_host_header,cs_protocol,cs_bytes,time_take
30
+ </source>
31
+
32
+ ## custiom filter
33
+ <filter cloudfront.access>
34
+ @type cf_query
35
+ </filter>
36
+ ```
32
37
 
33
38
  ## Contributing
34
39
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/fluent-plugin-cf_query_filter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
-
40
+ 1. Fork it
41
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
42
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
43
+ 4. Test it (`GEM_HOME=vendor bundle install; GEM_HOME=vendor bundle exec rake test`)
44
+ 5. Push to the branch (`git push origin my-new-feature`)
45
+ 6. Create new Pull Request
37
46
 
38
47
  ## License
39
48
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-cf_query_filter"
7
- spec.version = "0.1.0"
7
+ spec.version = "0.1.1"
8
8
  spec.authors = ["kazuki nozawa"]
9
9
  spec.email = ["kazuki1213@gmail.com"]
10
10
  spec.summary = %q{fluentd plugin to filter cs-uri-query from cloudfront log}
@@ -1,4 +1,4 @@
1
1
  class CfQueryFilter
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
4
4
  end
@@ -1,5 +1,5 @@
1
1
  class Fluent::CfQueryFilter < Fluent::Filter
2
- Fluent::Plugin.register_filter('cf_query_filter', self)
2
+ Fluent::Plugin.register_filter('cf_query', self)
3
3
  def filter(tag, time, record)
4
4
  return nil unless record['day'].start_with?('2')
5
5
  Hash[URI.decode_www_form(record['cs_uri_query'])]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-cf_query_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kazuki nozawa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-07 00:00:00.000000000 Z
11
+ date: 2016-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -54,8 +54,8 @@ files:
54
54
  - bin/console
55
55
  - bin/setup
56
56
  - fluent-plugin-cf_query_filter.gemspec
57
- - lib/fluent/plugin/cf_query_filter.rb
58
57
  - lib/fluent/plugin/cf_query_filter/version.rb
58
+ - lib/fluent/plugin/filter_cf_query.rb
59
59
  homepage: https://github.com/kazuki1213/fluent-plugin-cf_query_filter.git
60
60
  licenses:
61
61
  - MIT