grr/server/grr_response_server/hunt.py
def GetHuntOutputPluginLogs(hunt_id, offset, count):
  """Gets hunt's output plugins logs."""

  # TODO(user): this is a simplistic implementation that may return
  # more results than requested. Refactor and improve.
  flows = data_store.REL_DB.ReadHuntFlows(
      hunt_id,
      offset,
      count,
      filter_condition=db.HuntFlowsCondition.FLOWS_WITH_RESULTS_ONLY)
  logs = []
  for f in flows:
    for op_state in f.output_plugins_states:
      logs.extend(op_state.plugin_state["logs"])

  return logs
Gets hunt's output plugins logs.
Gets hunt's output plugins logs.
Gets hunt ' s output plugins logs .
def GetHuntOutputPluginLogs(hunt_id, offset, count):
  flows = data_store.REL_DB.ReadHuntFlows(
      hunt_id,
      offset,
      count,
      filter_condition=db.HuntFlowsCondition.FLOWS_WITH_RESULTS_ONLY)
  logs = []
  for f in flows:
    for op_state in f.output_plugins_states:
      logs.extend(op_state.plugin_state["logs"])
  return logs
def GetHuntOutputPluginLogs ( hunt_id , offset , count ) : flows = data_store . REL_DB . ReadHuntFlows ( hunt_id , offset , count , filter_condition = db . HuntFlowsCondition . FLOWS_WITH_RESULTS_ONLY ) logs = [ ] for f in flows : for op_state in f . output_plugins_states : logs . extend ( op_state . plugin_state [ "logs" ] ) return logs
Gets hunt's output plugins logs.
Gets hunt ' s output plugins logs .
"""Gets hunt's output plugins logs.""" # TODO(user): this is a simplistic implementation that may return # more results than requested. Refactor and improve.
hunt_id
offset
count