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

Anyway to filter the personal information from the log output? #142

Open
arianf opened this issue Jan 9, 2018 · 2 comments
Open

Anyway to filter the personal information from the log output? #142

arianf opened this issue Jan 9, 2018 · 2 comments
Labels

Comments

@arianf
Copy link

arianf commented Jan 9, 2018

Is there anyway to have one of the outputs filter out Personally identifiable information, while having the other output have no filtering?

  multi_logger = LogStashLogger.new(
  type: :multi_logger,
  outputs: [
    { type: :file, path: 'log/raw.log', formatter: ::Logger::Formatter },
    { type: :file, path: 'log/filtered.log', formatter: ::Logger::Formatter }
  ])
@dwbutler
Copy link
Owner

Hi,

I imagine that you could implement a custom formatter used by the filtered log.

@joshuacody
Copy link

The logstop gem interfaces very well with Logstash and allows you to filter our PII easily!

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