# A script to filter the logs from the log files in the support bundle

This utility strips the JSON metadata that is added by fluent-bit. This metadata provides kubernetes context about each log entry, but can be extraneous for debugging when all we are interested is just the log entries and do not need the contextual data. In those cases, this script can be used to filter out the relevant fields from the log files.

Usage: ./filter_logs.py -i <input_file> [-f <filter_field>]

**_Note_**: When the `-f` option is not provided, the filter_field defaults to `log`
            Look at any log file for the filter field names
