TheHive-Project / TheHive-Project/Cortex-Analyzers

How to return a summary as a responder output?

Open
#1,150 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
490
Forks
405
Avg merge
2d 43m
Merged PRs (30d)
8

Description

Hello,
I'm trying to have a summary as a responder output, but I obtain a raw JSON.

Request Type

Responder

Work Environment

N/A

Description

This is my relevant run code:

def run(self):
    Responder.run(self)

    self.summary({
        "column_a": "Hello World!"
    })

    self.report({
        "full": {
            "message": "Hello World!",
        }
    })

When my responder ends and I click on "lens" icon I obtain the following raw json:
raw json

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The supplied run method calls Responder.run, summary, and report; start by reproducing this responder and inspect the result opened through the lens icon. Compare the displayed output with the intended summary behavior, and consider it done when the summary is presented as intended rather than only as raw JSON.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.