Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-27417

add log redaction command line tool to mask tagged entries

    XMLWordPrintable

Details

    Description

      In support of SDK logs and other tools, a CLI tool that will convert tagged logs into hashed values consistent with the rest of the redaction done by the cluster. To facilitate scripting by end users, it would be great to also support unix pipe for redirection.

      EXAMPLES

      Imagine a utility named cb-redact…

      Read the input log file specified, hash tagged entries, write to output file specified.

      $ cb-redact tomcat.log tomcat-redacted.log
      

      Read stdin, hash tagged entries, write to stdout.

      $ cat tomcat.log > tomcat-redacted.log | cb-redact
      

      (typically this would be used in a more interesting pipeline)

      This will probably need to be large file capable, as in some use cases these could be >4GB in size.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              akshata.trivedi Akshata Trivedi [X] (Inactive)
              ingenthr Matt Ingenthron
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty