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

Bifurcation of Logs into different collections using a Configuration #111

Open
siva-nadella-lab opened this issue Apr 17, 2024 · 6 comments

Comments

@siva-nadella-lab
Copy link

Hi,

Thank you for a great library supporting audit feature. While the feature is comprehensive, is there a way I can configure where my logs should go and sit.

To quote a few examples, I may want to:

  1. Have my logs go into separate tables/collections based on the Source Application. Meaning thereby, let's say I have multiple applications but would like to have all my audit data in a single database, but seggregated into separate tables/collections. Is this a possibility?
  2. Have my logs move into a dynamically created table/collection by date. Meaning thereby, let's say, I configure my logging/auditing such that every month or so, a new table/collection gets created and the audit logs go into this table/collection.

Please let me know your thoughts on the above two.

Warm Regards
Siva

@yeshamavani
Copy link
Contributor

Hi,

Thank you for a great library supporting audit feature. While the feature is comprehensive, is there a way I can configure where my logs should go and sit.

To quote a few examples, I may want to:

  1. Have my logs go into separate tables/collections based on the Source Application. Meaning thereby, let's say I have multiple applications but would like to have all my audit data in a single database, but seggregated into separate tables/collections. Is this a possibility?
  2. Have my logs move into a dynamically created table/collection by date. Meaning thereby, let's say, I configure my logging/auditing such that every month or so, a new table/collection gets created and the audit logs go into this table/collection.

Please let me know your thoughts on the above two.

Warm Regards Siva

Let me look at this in detail and check how this is possible

@siva-nadella-lab
Copy link
Author

Hello,

Any further updates on this?

Regards
Siva

@yeshamavani
Copy link
Contributor

This is actually not that straight forward as we mention the table name in our model class.
Needs more analysis on this.

@samarpan-b
Copy link
Contributor

@yeshamavani can't we suggest the archival approach? Community can use that to achieve similar scenarios.

@siva-nadella-lab
Copy link
Author

Hi

Any further update on this?

Regards
Siva

@yeshamavani
Copy link
Contributor

Hello
There is nothing direct available right now but if you wish to save your logs somewhere else or archive them based on time
we have archival feature in our https://www.npmjs.com/package/@sourceloop/audit-service that helps you save logs on s3, but this is configurable and you can save it as per your business requirements

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

No branches or pull requests

3 participants