[GH-ISSUE #26] Frontail a directory #16

Closed
opened 2026-03-03 16:03:42 +03:00 by kerem · 5 comments
Owner

Originally created by @tommedema on GitHub (Dec 6, 2013).
Original GitHub issue: https://github.com/mthenw/frontail/issues/26

Great little project this is.

I'd like to use this for a rotating log system I have. Unfortunately the file names keep changes due to the rotating nature of the system. Therefore it would be useful if I could specify a folder to monitor, and then when I visit the site it would show me all available files within this folder.

Originally created by @tommedema on GitHub (Dec 6, 2013). Original GitHub issue: https://github.com/mthenw/frontail/issues/26 Great little project this is. I'd like to use this for a rotating log system I have. Unfortunately the file names keep changes due to the rotating nature of the system. Therefore it would be useful if I could specify a folder to monitor, and then when I visit the site it would show me all available files within this folder.
kerem closed this issue 2026-03-03 16:03:42 +03:00
Author
Owner

@mthenw commented on GitHub (Dec 17, 2013):

Currently if you specify a directory you will get tail from all files located in this dir. I think this is desired behavior.

<!-- gh-comment-id:30785596 --> @mthenw commented on GitHub (Dec 17, 2013): Currently if you specify a directory you will get tail from all files located in this dir. I think this is desired behavior.
Author
Owner

@emilsoman commented on GitHub (Sep 1, 2015):

@mthenw Is this still the current behavior? Asking because when I run frontail with a directory,

frontail /var/log

I get the following error:

tail: error reading ‘/var/log’: Is a directory
tail: /var/log: cannot follow end of this type of file; giving up on this name
<!-- gh-comment-id:136742468 --> @emilsoman commented on GitHub (Sep 1, 2015): @mthenw Is this still the current behavior? Asking because when I run frontail with a directory, ``` frontail /var/log ``` I get the following error: ``` tail: error reading ‘/var/log’: Is a directory tail: /var/log: cannot follow end of this type of file; giving up on this name ```
Author
Owner

@mthenw commented on GitHub (Sep 1, 2015):

@emilsoman I think so, but you have to put * at the end. So frontail /var/log/* should work.

<!-- gh-comment-id:136827140 --> @mthenw commented on GitHub (Sep 1, 2015): @emilsoman I think so, but you have to put \* at the end. So `frontail /var/log/*` should work.
Author
Owner

@emilsoman commented on GitHub (Sep 2, 2015):

@mthenw that works. Thanks!

<!-- gh-comment-id:136936875 --> @emilsoman commented on GitHub (Sep 2, 2015): @mthenw that works. Thanks!
Author
Owner

@mnsrulz commented on GitHub (Dec 30, 2021):

@mthenw while I am trying to fontail a directory as

frontail .vscode/logs/log*.txt
or
frontail .vscode/logs/*

it gives me below error in the windows os

node:events:368
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, open 'C:\.vscode\logs\log*.txt'
Emitted 'error' event on ReadStream instance at:
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\.vscode\\logs\\log*.txt'
}

at the same time if I just tail a single file it runs fine
frontail .vscode/logs/log.txt

Is there something you can advise on this?

<!-- gh-comment-id:1003151921 --> @mnsrulz commented on GitHub (Dec 30, 2021): @mthenw while I am trying to fontail a directory as `frontail .vscode/logs/log*.txt` or `frontail .vscode/logs/*` it gives me below error in the windows os ``` node:events:368 throw er; // Unhandled 'error' event ^ Error: ENOENT: no such file or directory, open 'C:\.vscode\logs\log*.txt' Emitted 'error' event on ReadStream instance at: at emitErrorNT (node:internal/streams/destroy:157:8) at processTicksAndRejections (node:internal/process/task_queues:83:21) { errno: -4058, code: 'ENOENT', syscall: 'open', path: 'C:\\.vscode\\logs\\log*.txt' } ``` at the same time if I just tail a single file it runs fine `frontail .vscode/logs/log.txt` Is there something you can advise on this?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/frontail#16
No description provided.