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

Request: Allow logs to be sent without url #104

Open
kmurgic opened this issue Mar 24, 2021 · 2 comments
Open

Request: Allow logs to be sent without url #104

kmurgic opened this issue Mar 24, 2021 · 2 comments
Labels

Comments

@kmurgic
Copy link

kmurgic commented Mar 24, 2021

I am working on application where we are logging the path and an object of pathParams to Sumo Logic because it makes filtering by these fields much easier. We would prefer not to send the url as this is redundant information for us and unnecessarily takes up extra disk space.

I did not see an option in the documentation for opting out of sending the url, timestamp, and/or sessionId. For my use case I would only want to opt out of sending the url.

@lfportal
Copy link

lfportal commented Apr 4, 2021

I had a similar use case and currently using the following as a workaround:

logger.log(
  { message },
  { url: undefined } // removes url field
)

@safaiyeh
Copy link
Contributor

I had a similar use case and currently using the following as a workaround:

logger.log(
  { message },
  { url: undefined } // removes url field
)

Nice work around, we should make url optional. Will make note of this.

@safaiyeh safaiyeh added the bug label Jun 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants