71. SQLライクな集計を支える
Esper
a highly scalable, memory-efficient, in-
memory computing, SQL-standard,
minimal latency, real-time streaming-
capable Big Data processing engine for
historical data, or medium to high-
velocity data and high-variety data.
93. SELECT
// 集計日時
current_timestamp() AS collected_timestamp,
channelId AS channel_id,
reason,
detail,
// エラー発生件数
count(*) AS error_count,
// 単位時間内で検出された最初のエラー発生日時
min(timestamp) AS first_timestamp,
// 単位時間内で検出された最後のエラー発生日時
max(timestamp) AS last_timestamp
FROM
// ウィンドウを1分ごとに定義
event_endpoint_error_log.win:time_batch(60 sec)
GROUP BY
channelId, reason, detail
HAVING
// エラー件数が1件以上あった場合に限定
count(*) > 0
114. <source>
type tail
format json
tag nginx.access.admin
path /var/log/nginx/web.its-lab.net/access.log
pos_file /var/log/td-agent/web.its-
lab.net_access.log.pos
</source>
Webサーバ側のFluentd