An implementation of the "tail -f" function of the Unix world.
Questions tagged [apache-tailer]
13 questions
4
votes
1 answer
How to avoid old log messages in TailerListener
I am using the Apache Commons Tailer API to monitor the log files.
Whenever I restart the application, old log messages are also displayed. Instead only new log messages should get displayed.
How do I avoid this behavior of getting the old log…

ssbecse
- 43
- 3
3
votes
3 answers
Apache Commons IO Tailer delivers old log messages
My code is given below.
public static void main(String[] args) {
// TODO code application logic here
File pcounter_log = new File("c:\development\temp\test.log");
try {
Tailer tailer = new Tailer(pcounter_log, new…

ssbecse
- 41
- 1
- 4
3
votes
1 answer
Why tail long file crash chrome?
My goal is to show a log file in real time. I'm doing it through a websocket, but when the paragraph ('p') of the html starts to be big (450 lines), Chrome starts lagging and crashing.
The implementation is this:
var paragraph =…

un0tec
- 170
- 1
- 11
3
votes
1 answer
Tailer don’t stop
I have implement a tailerListener in my program but when I start it, it never stop.
Here is my program:
public class PostClient{
private static File file = new File("../file.txt");
public static void main(String [] args){
// TAILER…

Chènevis
- 513
- 1
- 9
- 22
2
votes
1 answer
Gigantic virtual memory in java when tailing files
I've made a program that does like "tail -f" on a number of log files on a machine, using Apache Tailer from commons IO. Basically it runs in a thread, opens the file as a RandomAccessFile, checks its length, seeks to the end etc. It sends all log…

boffman
- 433
- 1
- 5
- 13
1
vote
2 answers
File Tailing not working using TailerListenerAdapter of Apache Commons io
I want to tail file contents using Java.I tried using Tailer and TailerListenerAdapter of Apache commons io. I have included storm-core-1.1.1.jar in the classpath for the required dependencies.Program compiles and runs; But the 'handle' method of…

Shital R. Patil
- 33
- 7
1
vote
1 answer
Using Tailer and WatchService
I use Tailer and WatchService at the same time by using this code:
AgentTailerListener listener = new AgentTailerListener();
Tailer tailer;
WatchService watcher = FileSystems.getDefault().newWatchService();
while (true) {
WatchKey watchKey;
…

Chènevis
- 513
- 1
- 9
- 22
0
votes
1 answer
How do I use Apache Tailer within a Spring Boot App?
Main Question
I'm writing an app (available here on GitHub - build/run instructions below) that scrapes a log file and reacts to certain events written to the log (in this case, making an HTTP request to a REST API). I've chosen Java, Spring Boot…

Ubunfu
- 1,083
- 2
- 10
- 21
0
votes
0 answers
Apache Tailer stops processing after 20 lines
I have the following code,
public class Identifier extends TailerListenerAdapter {
public static void main(String args[]) throws InterruptedException {
TailerListener listener = new Identifier();
Tailer tailer = new…

Root
- 955
- 1
- 16
- 39
0
votes
1 answer
Get output console tail and save to string Java?
I use the apache tailer for read end of line, if there is adding new line inside file log the program will print just end of line, it's like "tail -f" from linux, i have the output tail to send with String.
Can i get the output tail and save to…

dhaavhincy
- 52
- 13
0
votes
1 answer
commons-io Tailer is not calling handle() when file is created inside the JVM
I have a working Tailer implementation (commons-io Tailer)
Here's my tailer:
public class SyslogConsumer implements TailerListener {
@Override
public void handle(String line) { System.out.println(line);}
...
}
public void process() {
…

Robin Coe
- 750
- 7
- 28
0
votes
1 answer
Not Found Page Spring
I am trying to render a view. I am using apache tails, jetty and Spring. I mapped the view in general.xml. When I clicked the id on the table users to see the view of single user the page crash.
general.xml

Rogar
- 145
- 3
- 17
-2
votes
1 answer
Apache commons IO Tailer understanding
We are planning to use Apache Commons IO Tailer for real time log parsing. I want to understand how Tailer works internally, as if i specify delay parameter as 500msec and keys are continuously getting generated and at a very high rate, then will it…

shivamgoel
- 53
- 3
- 13