-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feed Elastic: fetch in batches #31377
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good.
see my questions.
@@ -291,3 +297,14 @@ def test_extract_api_from_username_password_username_api_key(): | |||
import FeedElasticsearch as esf | |||
username = esf.API_KEY_PREFIX + 'api_id' | |||
assert esf.extract_api_from_username_password(username, 'api_key') == ('api_id', 'api_key') | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check recommit error
Packs/FeedElasticsearch/Integrations/FeedElasticsearch/FeedElasticsearch.py
Show resolved
Hide resolved
@@ -100,7 +105,7 @@ configuration: | |||
name: feedExpirationInterval | |||
type: 1 | |||
required: false | |||
- defaultvalue: '240' | |||
- defaultvalue: '10' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what was this changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the fetch interval.
SInce in the previous version it fetched all the indicators in one batch, it was making sense to set the feed interval for 4 hours.
In the current version it will fetch in batches, so it doesn't really make sense to wait 4 hours until the next batch.
related: https://jira-dc.paloaltonetworks.com/browse/CIAC-8889
This will fetch indictaors in batches