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

[RFE] Additional information required in logs for tasks #11446

Closed
chargio opened this issue Sep 22, 2016 · 5 comments
Closed

[RFE] Additional information required in logs for tasks #11446

chargio opened this issue Sep 22, 2016 · 5 comments
Assignees

Comments

@chargio
Copy link
Contributor

chargio commented Sep 22, 2016

When creating logs for tasks, ManageIQ stores the task ID. When the task is part of a service, correlation of service to task is difficult, as implies looking for information in the log file when the task is created.
Service information should be added to tasks when they are related to a service.

@chargio
Copy link
Contributor Author

chargio commented Oct 26, 2016

We propose to do this adding two columns to the miq table to create a polymorphic association to the parent element:

  • A parent_id
  • A parent_type
    So any task is associated to the reponsible for creating it (request, service, other task, etc).
    In that way, logs could be enhanced with this information and thus you should be able to follow that relationship in log management tools like Splunk, Logstash, etc.

@chargio
Copy link
Contributor Author

chargio commented Oct 26, 2016

@pemcg Please review

@pemcg
Copy link

pemcg commented Oct 26, 2016

I also submitted an RFE on this: https://bugzilla.redhat.com/show_bug.cgi?id=1386108, although this only mentions adding the request ID. Sergio's suggestion of adding a generic parent id would definitely improve on this.

@miq-bot
Copy link
Member

miq-bot commented Sep 23, 2017

This issue has been automatically marked as stale because it has not been updated for at least 6 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions!

@gmcculloug
Copy link
Member

A logging change was introduced in #17013 (March 2018) which adds the request id into the log prefix to make it easier to identify request and task relationships.

This solution was used to close the BZ referenced above: https://bugzilla.redhat.com/show_bug.cgi?id=1386108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants