Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use file path instead of inode as identifier in the registry #4368

Closed
pvledoux opened this issue May 22, 2017 · 4 comments
Closed

Use file path instead of inode as identifier in the registry #4368

pvledoux opened this issue May 22, 2017 · 4 comments
Labels
enhancement Filebeat Filebeat needs_team Indicates that the issue/PR needs a Team:* label Stalled

Comments

@pvledoux
Copy link

Referencing the following issue:
https://discuss.elastic.co/t/some-lines-sent-to-logstash-are-truncated/79900/12

It will be great if we could use the file path instead of the inode in the registry for files that are not updated or renamed.
This could be configured per prospector like so:

filebeat:
  prospectors:

      - paths:
          - /var/data/logs/*.log
        document_type: log
        registry_identifier: path

It would be particularly useful when you import lot of old logs and delete the files immediately when filebeat as finished.

@ruflin
Copy link
Member

ruflin commented May 23, 2017

Thanks for filing this issue. Currently some filebeat refactoring is ongoing: #4277 Part of this is also making the state handling more generic which is need for this feature.

@guanghaofan
Copy link

Referencing the following issue:
https://discuss.elastic.co/t/some-lines-sent-to-logstash-are-truncated/79900/12

It will be great if we could use the file path instead of the inode in the registry for files that are not updated or renamed.
This could be configured per prospector like so:

filebeat:
  prospectors:

      - paths:
          - /var/data/logs/*.log
        document_type: log
        registry_identifier: path

It would be particularly useful when you import lot of old logs and delete the files immediately when filebeat as finished.

this is real a good idea for some special case, and I think this just is a common feature.

@botelastic
Copy link

botelastic bot commented Jul 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added Stalled needs_team Indicates that the issue/PR needs a Team:* label labels Jul 8, 2020
@botelastic
Copy link

botelastic bot commented Jul 8, 2020

This issue doesn't have a Team:<team> label.

@botelastic botelastic bot closed this as completed Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Filebeat Filebeat needs_team Indicates that the issue/PR needs a Team:* label Stalled
Projects
None yet
Development

No branches or pull requests

3 participants