Multiple JVM log to send (wildfly)


(leclerc cyril) #1

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 !


(Magnus B├Ąck) #2

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


(leclerc cyril) #3

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

thank you !


(leclerc cyril) #4

it is ok you can close it

thnaks


(system) #5

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