MISP / MISP/PyMISP

Extract Event ID

Open
#894 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
491
Forks
290
Avg merge
2d 8h
Merged PRs (30d)
3

Description

Hi, i'm trying to extract the id event with PyMISP. This is my code:

event = MISPEvent()
misp.add_event(event, pythonify=False)
misp.publish(event, alert=False)
event_id = event.get("id") #tried also with event.get("event_id")

Now if i print "event_id" the result is "None". I tried to print other information like: event.get("date") or event.get("uuid") and it's ok.

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

Start by tracing the MISPEvent object through misp.add_event(event, pythonify=False) and misp.publish(event, alert=False), then inspect how the server response is represented. The issue is done when the event ID can be reliably retrieved after publication, with behavior covered by an appropriate test if the repository provides one.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
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.