pillar config
diff --git a/conf/td-agent.conf b/conf/td-agent.conf
index 11ab2c7..3ee09cf 100755
--- a/conf/td-agent.conf
+++ b/conf/td-agent.conf
@@ -1,24 +1,25 @@
-<source>
-  type syslog
-  port 42185
-  tag syslog
-</source>
+{% from "fluentd/map.jinja" import server with context %}
 
+{%- for config in server.config %}
+
+{%- if config.type == "input" and config.name =="forward" %}
 <source>
   type forward
+  port {{ config.bind.port }}
+  bind {{ config.bind.host }}
 </source>
-
-<source>
-  type tail
-  format apache2
-  path /var/log/httpd/access_log
-  pos_file /var/log/td-agent/apache2.access_log.pos
-  tag mongo.apache.access
-</source>
- <source>
-    type forward
-  </source>
-<match mongo.*.*>
+{%- endif %}
+{%- if config.type == "output" and config.name == "elasticsearch" %}
+<match *>
+  port {{ config.bind.port }}
+  bind {{ config.bind.host }}
+  type elasticsearch
+  logstash_format true
+  flush_interval 10s # for testing
+</match>
+{%- endif %}
+{%- if config.type == "output" and config.name == "mongodb" %}
+<match *>
   # plugin type
   type mongo
 
@@ -33,12 +34,20 @@
   # interval
   flush_interval 10s
 </match>
+{%- endif %}
 
-<match mongo.*.*>
-  host 10.10.10.180
-  port 9200
+{%- endfor %}
 
-  type elasticsearch
-  logstash_format true
-  flush_interval 10s # for testing
-</match>
\ No newline at end of file
+<source>
+  type syslog
+  port 42185
+  tag syslog
+</source>
+
+<source>
+  type tail
+  format apache2
+  path /var/log/httpd/kibana_kibana.access.log
+  pos_file /var/log/td-agent/kibana_kibana.access_log.pos
+  tag mongo.apache.access
+</source>
\ No newline at end of file