-
1. Re: Jboss Server(Node) log to common path
jamezp Jul 19, 2017 6:34 PM (in response to delhibabu_r)I wouldn't advise this at all. You don't want 3 separate processes writing to the same file. You could end up with mixed results depending on how the OS decides to handle writes. You'd be best to send messages to some kind of log collector. Some time ago there was a blog post about how to do this with the ELK stack.
If you're already using a log collector and trying to parse logs it would be best to point the log collector to each location.
You could change the directory-grouping to by-type to get a little bit of a different directory structure. The following CLI command will give you the following directory structure.
/host=master:write-attribute(name=directory-grouping, value=by-type)
$JBOSS_HOME/domain/log ├── host-controller.log ├── process-controller.log └── servers ├── server-one │ └── server.log └── server-two └── server.log
--
James R. Perkins
-
2. Re: Jboss Server(Node) log to common path
delhibabu_r Jul 19, 2017 10:24 PM (in response to jamezp)Thanks James for your valuable comment, I will try to implement ELK for managing the log. However, I just ask it for a test environment, anyway your suggestion helps.
-Delhibabu.
-
3. Re: Jboss Server(Node) log to common path
jamezp Jul 20, 2017 12:39 PM (in response to delhibabu_r)1 of 1 people found this helpfulAh okay. If it's for a test environment you could potentially just write you're own that listens for file changes attempts to write to a single file.
--
James R. Perkins