mbabinski / insightidr4py Goto Github PK
View Code? Open in Web Editor NEWAllows simplified Python interaction with Rapid7's InsightIDR REST API.
License: MIT License
Allows simplified Python interaction with Rapid7's InsightIDR REST API.
License: MIT License
Hi
I just started using this.
I am trying to run the example script for user authentication and I am receiving the following error:
anthony@computer:~/IDR$ python3 TestLogSearch.py Traceback (most recent call last): File "/home/anthony/IDR/TestLogSearch.py", line 9, in <module> groups = idr.QueryGroups(logset_name, query, time_range) File "/home/anthony/IDR/IDR4Py.py", line 112, in QueryGroups log_ids = ListLogIdsByLogSetName(logset_name) File "/home/anthony/IDR/IDR4Py.py", line 37, in ListLogIdsByLogSetName log_info = GetLogInfo() File "/home/anthony/IDR/IDR4Py.py", line 22, in GetLogInfo response = requests.get(log_mgmt_url, headers=headers).json()["logs"] KeyError: 'logs'
Hi.
Any interest on adding capability to work with Investigations via Python with the API?
I am really enjoying your work with Log Search so thank you.
"import InsightIDR4Py as idr
from datetime import datetime, timedelta, timezone
api_key = "apikey"
api = idr.InsightIDR(api_key)
start_time_7d_ago = (datetime.now(timezone.utc) - timedelta(7)).strftime("%Y-%m-%dT%H:%M:%SZ")
print(start_time_7d_ago)
investigations = api.ListInvestigations(start_time=start_time_7d_ago)"
"Traceback (most recent call last):
File "C:\Users\user\Desktop\v1.py", line 14, in
investigations = api.ListInvestigations(start_time=start_time_7d_ago)
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\InsightIDR4Py.py", line 240, in ListInvestigations
params["index"] += 100
KeyError: 'index' "
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.