code: def accept_line(self, logevent):
          
          if self.regex_mode:
              return bool(re.search(self.field, logevent.line_str))
          else:
              return getattr(logevent, self.field) is not None
docs: Return True if the log line has the nominated yaxis field.