by shigemk2

当面は技術的なことしか書かない

FEKP サンプル

  • Fluentd(fluentd-logger-scala)
  • Elasticsearch
  • Kibana
  • Play Framework

github.com

何となくこんな感じっす。

def index = Action {
    val LOG = FluentLoggerFactory.getLogger("fluentd.test.access", "192.168.99.100", 24224)
    val data = new mutable.HashMap[String, String]();
    data.put("from", "userA");
    data.put("to", "userB");
    LOG.log("follow", data);
    Ok(views.html.index("Your new application is ready."))
  }