Extract Event ID
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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