MCPcopy Create free account
hub / github.com/WraySmith/log-anomaly / load_data

Method load_data

parse/logparser/Spell/Spell.py:275–277  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

273 print('Parsing done. [Time taken: {!s}]'.format(datetime.now() - starttime))
274
275 def load_data(self):
276 headers, regex = self.generate_logformat_regex(self.logformat)
277 self.df_log = self.log_to_dataframe(os.path.join(self.path, self.logname), regex, headers, self.logformat)
278
279 def preprocess(self, line):
280 for currentRex in self.rex:

Callers 1

parseMethod · 0.95

Calls 2

log_to_dataframeMethod · 0.95

Tested by

no test coverage detected