page has moved. http://qiita.com/y-ken/items/b302b73d0721162ff401
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# System secret ACL policy | |
--- | |
acl: | |
operators: | |
# TD | |
td: | |
secrets: | |
- td.* | |
td_load: | |
secrets: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
<match apache.**> | |
@type copy | |
<store> | |
@type s3 | |
...snip... | |
buffer_path /var/log/fluent/s3_hourly | |
time_slice_format %Y%m%d%h | |
</store> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rake | |
================================================================================ | |
A new version of RubyMotion is available. Run `sudo motion update' to upgrade. | |
================================================================================ | |
rake aborted! | |
Pod::Informative: [!] Unable to find a specification for `AFNetworking (~> 2.0)`. | |
/Users/y-ken/Documents/htdocs/motion-octofeed/vendor/bundle/ruby/2.1.0/gems/cocoapods-0.23.0/lib/cocoapods/resolver.rb:195:in `find_cached_set' | |
/Users/y-ken/Documents/htdocs/motion-octofeed/vendor/bundle/ruby/2.1.0/gems/cocoapods-0.23.0/lib/cocoapods/resolver.rb:153:in `block (2 levels) in find_dependency_specs' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<source> | |
type tail | |
path /var/log/httpd/error_log | |
format /^(\[(?<time>[^\]]*)\] \[(?<level>[^\]]+)\] (\[client (?<host>[^\]]*)\] )?(?<message>.*)|(?<message>.*))$/ | |
time_format %a %b %d %H:%M:%S %Y | |
tag apache.error | |
pos_file /var/log/td-agent/apache_error.pos | |
</source> | |
# 送り先を Fluentd の標準ログへ出力します |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative './test/helper' | |
require 'benchmark' | |
Fluent::Test.setup | |
def create_driver(config, tag = 'foo.bar') | |
Fluent::Test::OutputTestDriver.new(Fluent::ParserOutput, tag).configure(config) | |
end | |
# setup | |
time = Time.now.to_i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<match apache.access> | |
type record_reformer | |
enable_ruby false | |
tag reform.apache.access | |
<record> | |
hostname ${hostname} | |
</record> | |
</match> | |
<match reform.apache.access> |
次の記事のような集計をelasticsearchで実現するクエリが分からず困っております。
- Solr1.4系、Solr3.x系におけるPivot Facet検索について下記によい記事があったのでその抄訳
https://gist.github.com/kuwabarahiroshi/4266118
期待する結果は、SQLで言う所の次のクエリに相応するものです。
SELECT `都道府県`, `物件種別`, COUNT(*) FROM sample_data GROUP BY `都道府県`, `物件種別`;
Docker(LXC+aufs)のディスクI/O性能ベンチマーク の記事にて利用した計測データを公開します。 http://y-ken.hatenablog.com/entry/docker-diskio-benchmark-with-bonnie
ConoHa VPS: CPU2コア メモリ1GB HDD100GB
- Guest local filesystem
NewerOlder