Compare commits

...

4 Commits

Author SHA1 Message Date
Sean Whalen
66506056ac Upgrade elasticsearch version to >=8.0.0 2025-03-22 14:15:05 -04:00
Sean Whalen
eb912ce68d Upgrade elasticsearch version from 7.4.0 to 8.17.1 2025-03-22 14:07:52 -04:00
Tom Henderson
a805733221 Raise for failed status (#594) 2025-03-22 11:22:49 -04:00
Sean Whalen
9552c3ac92 Update README.md 2025-03-21 09:41:14 -04:00
3 changed files with 6 additions and 4 deletions

View File

@@ -42,6 +42,6 @@ Thanks to all
- Consistent data structures
- Simple JSON and/or CSV output
- Optionally email the results
- Optionally send the results to Elasticsearch and/or Splunk, for use
- Optionally send the results to Elasticsearch, Opensearch, and/or Splunk, for use
with premade dashboards
- Optionally send reports to Apache Kafka

View File

@@ -345,7 +345,9 @@ def get_service_from_reverse_dns_base_domain(
if not (offline or always_use_local_file) and len(reverse_dns_map) == 0:
try:
logger.debug(f"Trying to fetch reverse DNS map from {url}...")
csv_file.write(requests.get(url).text)
response = requests.get(url)
response.raise_for_status()
csv_file.write(response.text)
csv_file.seek(0)
load_csv(csv_file)
except requests.exceptions.RequestException as e:

View File

@@ -34,8 +34,8 @@ dependencies = [
"boto3>=1.16.63",
"dateparser>=1.1.1",
"dnspython>=2.0.0",
"elasticsearch-dsl==7.4.0",
"elasticsearch<7.14.0",
"elasticsearch-dsl==8.17.1",
"elasticsearch<=8.0.0",
"expiringdict>=1.1.4",
"geoip2>=3.0.0",
"google-api-core>=2.4.0",