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

Allow setting both hostname and logfile name in the config #126

Open
DannyBen opened this issue Feb 20, 2016 · 0 comments · May be fixed by #246
Open

Allow setting both hostname and logfile name in the config #126

DannyBen opened this issue Feb 20, 2016 · 0 comments · May be fixed by #246

Comments

@DannyBen
Copy link

Following the discussion in #51, I am opening this new suggestion:

Papertrail has two "tags" per entry - the hostname, sometimes referred to as
the system name, and the log name, sometimes referred to as the tag.

PR #51 opened my apetite to be able to edit not only the second one (tag), but also the first one.

Then, we will be able to configure like this:

- path: /opt/rails/{{ name }}/log/*.log
  system: {{ name }}

And the output will look like this:
( assuming {{ name }} evaluates to rails01 and rails02 )

timestamp    rails01    crono     event details
timestamp    rails02    crono     event details

instead of

timestamp    rails    rails01_crono     event details
timestamp    rails    rails02_crono     event details

In other words - allow to set hostname per file, and not only globally per actual physical machine.

The rationale is simple:

  1. Assuming the implementation is easy, why not?
  2. It is not uncommon to have more than one 'systems' on the same host. So hostname is a little useless in such cases
  3. It will allow a much simpler configuration for ansible (and other automation tools) - we will be able to use the single wildcard configuration entry, instead of having a line per log file.
  4. Without this feature, the second tag of the log contains information about the system and not the log file. It does not belog there. (e.g. rails rails01_crono is less readable and compact than rails01 crono)

If more clarifications are needed about our use case, I am happy to share more.

jonahwh added a commit to jonahwh/remote_syslog2 that referenced this issue May 29, 2022
jonahwh added a commit to jonahwh/remote_syslog2 that referenced this issue May 29, 2022
jonahwh added a commit to jonahwh/remote_syslog2 that referenced this issue May 29, 2022
jonahwh added a commit to jonahwh/remote_syslog2 that referenced this issue May 29, 2022
jonahwh added a commit to jonahwh/remote_syslog2 that referenced this issue May 29, 2022
jonahwh added a commit to jonahwh/remote_syslog2 that referenced this issue May 29, 2022
jonahwh added a commit to jonahwh/remote_syslog2 that referenced this issue May 29, 2022
jonahwh added a commit to jonahwh/remote_syslog2 that referenced this issue May 29, 2022
jonahwh added a commit to jonahwh/remote_syslog2 that referenced this issue May 29, 2022
jonahwh added a commit to jonahwh/remote_syslog2 that referenced this issue May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants