Skip to content
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

Merged
merged 9 commits into from Dec 13, 2023
Merged

Feed Elastic: fetch in batches #31377

merged 9 commits into from Dec 13, 2023

Conversation

ilaner
Copy link
Contributor

@ilaner ilaner commented Dec 10, 2023

related: https://jira-dc.paloaltonetworks.com/browse/CIAC-8889
This will fetch indictaors in batches

Copy link
Contributor

@yuvalbenshalom yuvalbenshalom left a 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')


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check recommit error

@@ -100,7 +105,7 @@ configuration:
name: feedExpirationInterval
type: 1
required: false
- defaultvalue: '240'
- defaultvalue: '10'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what was this changed?

Copy link
Contributor Author

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.

@ilaner ilaner merged commit be51007 into master Dec 13, 2023
21 of 23 checks passed
@ilaner ilaner deleted the feed_elastic_last_run branch December 13, 2023 15:22
sapirshuker pushed a commit that referenced this pull request Dec 21, 2023
maimorag pushed a commit that referenced this pull request Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants