# Multiple JVM log to send (wildfly)

**URL:** <https://discuss.elastic.co/t/multiple-jvm-log-to-send-wildfly/57665>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 10, 2016, 7:33am UTC](https://discuss.elastic.co/t/multiple-jvm-log-to-send-wildfly/57665 "2016-08-10T07:33:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fdlprod](https://avatars.discourse-cdn.com/v4/letter/f/6f9a4e/32.png) [@fdlprod](https://discuss.elastic.co/u/fdlprod)\
**Post date:** [August 10, 2016, 7:33am UTC](https://discuss.elastic.co/t/multiple-jvm-log-to-send-wildfly/57665/1 "2016-08-10T07:33:49Z")

</div>

Hi,

i have one issue, problem, question, indeed i have on the same host 3 differents JVM, before with logstash-Forwarder i can add a name on each log i send to logstash indexer...

now in filebeat this is the configuration example

filebeat:

# List of prospectors to fetch data.

prospectors:  
# Each - is a prospector. Below are the prospector specific configurations  
-  
# Paths that should be crawled and fetched. Glob based paths.  
# To fetch all ".log" files from a specific level of subdirectories  
# /var/log/_/_.log can be used.  
# For each file found under this path, a harvester is started.  
# Make sure not file is defined twice as this can lead to unexpected behaviour.  
paths:  
- C:/dev/servers/wildfly-9.0.2.Final/domain/servers/server-one/log/server.log  
- C:/dev/servers/wildfly-9.0.2.Final/domain/servers/server-two/log/server.log  
- C:/dev/servers/wildfly-9.0.2.Final/domain/servers/server-three/log/server.log

how i can add a name to each line ? like server-one or server two or server 3, because the problem once i am in KIBANA how i detect if my error is in server one or 2 or 3 , i repeat i am in same host.... but not same JVM, directory are differents...

thank you !

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 10, 2016, 9:37am UTC](https://discuss.elastic.co/t/multiple-jvm-log-to-send-wildfly/57665/2 "2016-08-10T09:37:57Z")

</div>

Use multiple prospectors, each with a `fields` option where you can define any fields you like (e.g. one that indicates the server name).

---

<div class="post-metadata">

**Author:** ![fdlprod](https://avatars.discourse-cdn.com/v4/letter/f/6f9a4e/32.png) [@fdlprod](https://discuss.elastic.co/u/fdlprod)\
**Post date:** [August 10, 2016, 9:41am UTC](https://discuss.elastic.co/t/multiple-jvm-log-to-send-wildfly/57665/3 "2016-08-10T09:41:20Z")

</div>

ok i will try it in same time just with source i can see where it come from,

thank you !

---

<div class="post-metadata">

**Author:** ![fdlprod](https://avatars.discourse-cdn.com/v4/letter/f/6f9a4e/32.png) [@fdlprod](https://discuss.elastic.co/u/fdlprod)\
**Post date:** [August 11, 2016, 12:56pm UTC](https://discuss.elastic.co/t/multiple-jvm-log-to-send-wildfly/57665/4 "2016-08-11T12:56:05Z")

</div>

it is ok you can close it

thnaks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 31, 2016, 7:33am UTC](https://discuss.elastic.co/t/multiple-jvm-log-to-send-wildfly/57665/5 "2016-08-31T07:33:48Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
