Advertisement
TDCustmerSupportJP

Untitled

Jul 3rd, 2017
12,392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.41 KB | None | 0 0
  1. -- Fluentd の Data Collection に対応したサービスごとのPVをカウントしたい。
  2. SELECT td_title, COUNT(1) AS cnt
  3. FROM access_log
  4. WHERE
  5.   td_title LIKE '%S3%' OR
  6.   td_title LIKE '%Mongo%' OR
  7.   td_title LIKE '%HDFS%' OR
  8.   td_title LIKE '%Riak%' OR
  9.   td_title LIKE '%Windows%' OR
  10.   td_title LIKE '%RapsberryPi%' OR
  11.   td_title LIKE '%GlusterFS%' OR
  12.   td_title LIKE '%Norikra%'
  13. GROUP BY td_title
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement