Giter VIP home page Giter VIP logo

logknife's Introduction

logknife

Remove sensitive information from your logs.

Go Report License Release

screenshot

Examples

$ echo "12345678-1234-4321-b321-7e3fe946f781 1.1.1.1 2606:4700:4700::1111" | logknife -
8ac8d0fc-4f7e-4969-8d5b-6f5f4e116b37 10.39.213.116 2001:db8:bb14:9f27::1111

$ logknife --redact test.txt                                                                                                                                             130 ↵ nate@altair
logknife is a log redactor.
It uses regex to substitute sensitive data with an innocuous replacement or a redaction message.
IP addresses: ******** and ********
UUID: ********

Installation

logkinfe is available in binary form from:

Usage

Remove sensitive information from your logs.

Usage:
  logknife [flags]

Flags:
  -t, --entropy-threshold int      Minimum entropy threshold (default 50)
  -h, --help                       help for logknife
  -i, --no-ips                     Don't match IP addresses
  -u, --no-uuids                   Don't match UUIDs
  -r, --redact                     Replace matches with redaction pattern instead of innocuous substitutes
      --redaction-pattern string   Redaction pattern (default "********")
  -v, --verbose                    Enable verbose logging
  -V, --version                    Show version

logknife's People

Contributors

natesales avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.