firewall_log_analysis.py
def perform_analysis(self, file_name):
        """
        Begin analytics for the provided log file.
        :param file_name:
        :return:
        """
        if self.read_csv_file(file_name):
            if self.verify_columns():
                if self.datetime_index():
                    try:
                        print('* Profiling...')
                        self.src_ip_analysis()
                        self.dest_ip_analysis()
                    except Exception as e:
                        print('* ERROR IN PERFORMING ANALYSIS : ', e)
                        sys.exit(1)
            else:
                print('* Invalid columns found!')
                print('* Column names must be : ', FIREWALL_LOG_STD_COLS)
                sys.exit(1)

        Begin analytics for the provided log file.
        :param file_name:
        :return:
        
Begin analytics for the provided log file.
Begin analytics for the provided log file .
def perform_analysis(self, file_name):
        if self.read_csv_file(file_name):
            if self.verify_columns():
                if self.datetime_index():
                    try:
                        print('* Profiling...')
                        self.src_ip_analysis()
                        self.dest_ip_analysis()
                    except Exception as e:
                        print('* ERROR IN PERFORMING ANALYSIS : ', e)
                        sys.exit(1)
            else:
                print('* Invalid columns found!')
                print('* Column names must be : ', FIREWALL_LOG_STD_COLS)
                sys.exit(1)
def perform_analysis ( self , file_name ) : if self . read_csv_file ( file_name ) : if self . verify_columns ( ) : if self . datetime_index ( ) : try : print ( '* Profiling...' ) self . src_ip_analysis ( ) self . dest_ip_analysis ( ) except Exception as e : print ( '* ERROR IN PERFORMING ANALYSIS : ' , e ) sys . exit ( 1 ) else : print ( '* Invalid columns found!' ) print ( '* Column names must be : ' , FIREWALL_LOG_STD_COLS ) sys . exit ( 1 )
Begin analytics for the provided log file.
Begin analytics for the provided log file .
"""
        Begin analytics for the provided log file.
        :param file_name:
        :return:
        """
None
self
file_name
None