Add elasticsearch output

Change-Id: Ic04a09cd8f25812fcf97061e88f1a36745f0eb39
diff --git a/metadata/service/agent/output/elasticsearch.yml b/metadata/service/agent/output/elasticsearch.yml
new file mode 100644
index 0000000..29921d0
--- /dev/null
+++ b/metadata/service/agent/output/elasticsearch.yml
@@ -0,0 +1,28 @@
+classes:
+- service.fluentd.agent.single
+parameters:
+  fluentd:
+    agent:
+      config:
+        label:
+          default_output:
+            filter:
+              add_general_fields:
+                tag: "**"
+                type: record_transformer
+                enable_ruby: true
+                record:
+                  - name: Type
+                    value: log
+                  - name: environment_label
+                    value: ${_param:cluster_domain}
+                  - name: Hostname
+                    value: ${fluentd:dollar}{ hostname }
+                  - name: Timestamp
+                    value: ${fluentd:dollar}{ time.strftime('%Y-%m-%dT%H:%M:%S.%N%z') }
+            match:
+              elasticsearch_output:
+                tag: "**"
+                type: elasticsearch
+                host: 127.0.0.1
+                port: 9200