class_docstr: Classify, map source, and parse a raw record into its declared type.
class_docstr_tok: ["Classify",",","map","source",",","and","parse","a","raw","record","into","its","declared","type","."]
docstr: Get any log schemas that matched this log format
  
  If successful, this method sets the PayloadRecord.parser attribute to the parser
  that was used to parse the data.
  
  Args:
      payload_record: A PayloadRecord object
      logs_config: Subset of entire logs.json schemas to use for processing
  
  Returns:
      bool: True if the payload's data was successfully parsed, False otherwise
docstr_tok: ["Get","any","log","schemas","that","matched","this","log","format","If","successful",",","this","method","sets","the","PayloadRecord.parser","attribute","to","the","parser","that","was","used","to","parse","the","data",".","Args",":","payload_record",":","A","PayloadRecord","object","logs_config",":","Subset","of","entire","logs.json","schemas","to","use","for","processing","Returns",":","bool",":","True","if","the","payload","'s","data","was","successfully","parsed",",","False","otherwise"]
code: def _process_log_schemas(cls, payload_record, logs_config):
      """Get any log schemas that matched this log format
  
      If successful, this method sets the PayloadRecord.parser attribute to the parser
      that was used to parse the data.
  
      Args:
          payload_record: A PayloadRecord object
          logs_config: Subset of entire logs.json schemas to use for processing
  
      Returns:
          bool: True if the payload's data was successfully parsed, False otherwise
      """
      # Loop over all logs schemas declared for this source
      for log_type, options in logs_config.items():
          LOGGER.debug(
              "Trying schema '%s' with options: %s", log_type, options
          )
  
          # Get the parser type to use for this log and set up the parser
          parser = get_parser(options["parser"])(
              options, log_type=log_type
          )
  
          parsed = parser.parse(payload_record.data)
          if not parsed:
              LOGGER.debug(
                  "Failed to classify data with schema: %s", log_type
              )
              continue
  
          LOGGER.debug("Log classified with schema: %s", log_type)
  
          # Set the parser on successful parse
          payload_record.parser = parser
  
          return True
  
      return False
  
imports: from collections import OrderedDict
  import os
  import logging
  from streamalert.classifier.clients import SQSClient
  from streamalert.shared.firehose import FirehoseClient
  from streamalert.classifier.parsers import get_parser
  from streamalert.classifier.payload.payload_base import StreamPayload
  from streamalert.shared import config, CLASSIFIER_FUNCTION_NAME
  from streamalert.shared.artifact_extractor import ArtifactExtractor
  from streamalert.shared.exceptions import ConfigError
  from streamalert.shared.logger import get_logger
  from streamalert.shared.metrics import MetricLogger
  from streamalert.shared.normalize import Normalizer
label_desc: Use image node_id 8 for calling the Classifier obj's underlying member method code with example usage: obj._process_log_schemas(cls, payload_record, logs_config) and returns: False, True