Event Retrieval With PyMISP.search Returns Empty List
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 491
- Forks
- 290
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 3
Description
Hi,
I am having an issue with the retrieving events with PyMISP. When I use the search() function from PyMISP class with the date_to argument, the returned list of events is always empty even though the queried events (those created before date_to) are present on MISP. Specifically, here is my implmentation:
misp = ExpandedPyMISP(misp_url, misp_key, misp_verifycert)
results_a = misp.search(date_to=datetime.now()+timedelta(days=1))
Theoretically, all events present in MISP should be returned, as all events are guranteed to be created before the date_to time. However, on execution, results_a is [].
Is this a potential bug? Alternatively, am I doing something wrong with this search?
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 reproducing the reported ExpandedPyMISP.search() call with date_to and inspect how that entry point handles the argument and the returned API response. Compare the empty result with events known to exist before the supplied date; done means identifying whether this is a client bug or incorrect usage and documenting or correcting the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100