[GH-ISSUE #162] Support for file pattern matching in ? #134

Closed
opened 2026-02-26 05:31:25 +03:00 by kerem · 6 comments
Owner

Originally created by @lubos-bistak on GitHub (Sep 1, 2015).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/162

Hello,

is there any support inharverster.conf for matching multiple files by some pattern like /var/log/some-app/some-app*.log?

Lubos

Originally created by @lubos-bistak on GitHub (Sep 1, 2015). Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/162 Hello, is there any support in`harverster.conf` for matching multiple files by some pattern like `/var/log/some-app/some-app*.log`? Lubos
kerem closed this issue 2026-02-26 05:31:25 +03:00
Author
Owner

@zoell commented on GitHub (Jan 14, 2016):

+1

<!-- gh-comment-id:171818466 --> @zoell commented on GitHub (Jan 14, 2016): +1
Author
Owner

@federicot commented on GitHub (Feb 8, 2016):

As a workaround you can do something like this in your harvester.conf:

var fs = require('fs');

log_files = fs.readdirSync('/var/log/apache2/');
for (var i=0; i<log_files.length; i++) {
  log_files[i] = '/var/log/apache2/'+log_files[i];
}

exports.config = {
  nodeName: "application_server",
  logStreams: {
    apache: log_files
  },
  server: {
    host: '0.0.0.0',
    port: 28777
  }
}
<!-- gh-comment-id:181566638 --> @federicot commented on GitHub (Feb 8, 2016): As a workaround you can do something like this in your harvester.conf: ``` var fs = require('fs'); log_files = fs.readdirSync('/var/log/apache2/'); for (var i=0; i<log_files.length; i++) { log_files[i] = '/var/log/apache2/'+log_files[i]; } exports.config = { nodeName: "application_server", logStreams: { apache: log_files }, server: { host: '0.0.0.0', port: 28777 } } ```
Author
Owner

@colin-han commented on GitHub (Dec 2, 2016):

@federicot your solution is a workaround, but it is a static file list. I want log.io can watch new files (which are created after harvester started) match the pattern.

<!-- gh-comment-id:264359670 --> @colin-han commented on GitHub (Dec 2, 2016): @federicot your solution is a workaround, but it is a static file list. I want log.io can watch new files (which are created after harvester started) match the pattern.
Author
Owner

@Denusdv commented on GitHub (Jan 12, 2020):

I saw this question is pretty old, although there is not clear answer if such such capability is supported.
I have the same scenario, the logs files are created dynamically for different processes with different prefix. I would like to watch them after the harvester started. Is it possible? thanks

<!-- gh-comment-id:573430686 --> @Denusdv commented on GitHub (Jan 12, 2020): I saw this question is pretty old, although there is not clear answer if such such capability is supported. I have the same scenario, the logs files are created dynamically for different processes with different prefix. I would like to watch them after the harvester started. Is it possible? thanks
Author
Owner

@msmathers commented on GitHub (Jan 12, 2020):

https://github.com/NarrativeScience/log.io/issues/211

<!-- gh-comment-id:573445597 --> @msmathers commented on GitHub (Jan 12, 2020): https://github.com/NarrativeScience/log.io/issues/211
Author
Owner

@msmathers commented on GitHub (Apr 23, 2020):

Support for globs and new file detection have been added in v0.4.14 https://github.com/NarrativeScience/log.io/releases/tag/v0.4.14

<!-- gh-comment-id:618675366 --> @msmathers commented on GitHub (Apr 23, 2020): Support for globs and new file detection have been added in v0.4.14 https://github.com/NarrativeScience/log.io/releases/tag/v0.4.14
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/log.io-NarrativeScience-old#134
No description provided.