Closed
Description
We usually host multiple virtual directories in a web server. We need to configure one file beat instance to ship logs of all the virtual directories. However, logs for each file needs to have its own tags, document type and fields. Otherwise they have to be all in one format and gets dumped into one index.
We should have a hierarchical format like this:
path:
- /var/httpd/site1.log
- input_type: log
- document_type: apachecommon
- fields: [ "system": "site1", "group": "apachelog" ]
- tags: [ "site1" ]
- index: site1-logstash-YY.MM.dd
- /var/weblogic/site2.log
- input_type: log
- document_type: weblogic
- fields: [ "system": "site2", "group": "weblogiclog" ]
- tags: [ "site2" ]
- index: site2-logstash-YY.MM.dd