Skip to content

Commit

Permalink
change index name
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorwalton committed Mar 7, 2024
1 parent 5dcc6f6 commit 358b286
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ async def collect_user_activity(suspicious_logins: SuspiciousLogin) -> SapSiemWa
"""
es_client = await create_wazuh_indexer_client("Wazuh-Indexer")
results = es_client.search(
#index="sap_siem_*",
index="new-integrations*",
index="sap_siem_*",
#index="new-integrations*",
body={
"size": 1000,
"query": {"bool": {"must": [{"term": {"ip": suspicious_logins.ip}}]}},
Expand All @@ -322,8 +322,8 @@ async def get_initial_search_results(es_client):
dict: The search results.
"""
return es_client.search(
#index="sap_siem_*",
index="new-integrations*",
index="sap_siem_*",
#index="new-integrations*",
body={
"size": 1000,
"query": {"bool": {"must": [{"term": {"event_analyzed_brute_force_same_ip": "False"}}]}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ async def collect_user_activity(suspicious_logins: SuspiciousLogin) -> SapSiemWa
"""
es_client = await create_wazuh_indexer_client("Wazuh-Indexer")
results = es_client.search(
#index="sap_siem_*",
index="new-integrations*",
index="sap_siem_*",
#index="new-integrations*",
body={
"size": 1000,
"query": {"bool": {"must": [{"term": {"params_loginID": suspicious_logins.loginID}}]}},
Expand All @@ -322,8 +322,8 @@ async def get_initial_search_results(es_client):
dict: The search results.
"""
return es_client.search(
#index="sap_siem_*",
index="new-integrations*",
index="sap_siem_*",
#index="new-integrations*",
body={
"size": 1000,
"query": {"bool": {"must": [{"term": {"event_analyzed_brute_force_ip": "False"}}]}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ async def collect_user_activity(suspicious_logins: SuspiciousLogin) -> SapSiemWa
"""
es_client = await create_wazuh_indexer_client("Wazuh-Indexer")
results = es_client.search(
#index="sap_siem_*",
index="new-integrations*",
index="sap_siem_*",
#index="new-integrations*",
body={
"size": 1000,
"query": {"bool": {"must": [{"term": {"params_loginID": suspicious_logins.loginID}}]}},
Expand All @@ -322,8 +322,8 @@ async def get_initial_search_results(es_client):
dict: The search results.
"""
return es_client.search(
#index="sap_siem_*",
index="new-integrations*",
index="sap_siem_*",
#index="new-integrations*",
body={
"size": 1000,
"query": {"bool": {"must": [{"term": {"event_analyzed_same_user_failed_diff_geo": "False"}}]}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ async def collect_user_activity(suspicious_logins: SuspiciousLogin) -> SapSiemWa
"""
es_client = await create_wazuh_indexer_client("Wazuh-Indexer")
results = es_client.search(
#index="sap_siem_*",
index="new-integrations*",
index="sap_siem_*",
#index="new-integrations*",
body={
"size": 1000,
"query": {"bool": {"must": [{"term": {"params_loginID": suspicious_logins.loginID}}]}},
Expand All @@ -322,8 +322,8 @@ async def get_initial_search_results(es_client):
dict: The search results.
"""
return es_client.search(
#index="sap_siem_*",
index="new-integrations*",
index="sap_siem_*",
#index="new-integrations*",
body={
"size": 1000,
"query": {"bool": {"must": [{"term": {"event_analyzed_same_user_failed_diff_ip": "False"}}]}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ async def collect_user_activity(suspicious_logins: SuspiciousLogin) -> SapSiemWa
"""
es_client = await create_wazuh_indexer_client("Wazuh-Indexer")
results = es_client.search(
#index="sap_siem_*",
index="new-integrations*",
index="sap_siem_*",
#index="new-integrations*",
body={
"size": 1000,
"query": {"bool": {"must": [{"term": {"ip": suspicious_logins.ip}}]}},
Expand All @@ -322,8 +322,8 @@ async def get_initial_search_results(es_client):
dict: The search results.
"""
return es_client.search(
#index="sap_siem_*",
index="new-integrations*",
index="sap_siem_*",
#index="new-integrations*",
body={
"size": 1000,
"query": {"bool": {"must": [{"term": {"event_analyzed_successful_login_after_failures_diff_loginID": "False"}}]}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ async def collect_user_activity(suspicious_logins: SuspiciousLogin) -> SapSiemWa
"""
es_client = await create_wazuh_indexer_client("Wazuh-Indexer")
results = es_client.search(
#index="sap_siem_*",
index="new-integrations*",
index="sap_siem_*",
#index="new-integrations*",
body={
"size": 1000,
"query": {"bool": {"must": [{"term": {"params_loginID": suspicious_logins.loginID}}]}},
Expand All @@ -322,8 +322,8 @@ async def get_initial_search_results(es_client):
dict: The search results.
"""
return es_client.search(
#index="sap_siem_*",
index="new-integrations*",
index="sap_siem_*",
#index="new-integrations*",
body={
"size": 1000,
"query": {"bool": {"must": [{"term": {"event_analyzed_same_user_successful_diff_geo": "False"}}]}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ async def collect_user_activity(suspicious_logins: SuspiciousLogin) -> SapSiemWa
"""
es_client = await create_wazuh_indexer_client("Wazuh-Indexer")
results = es_client.search(
#index="sap_siem_*",
index="new-integrations*",
index="sap_siem_*",
#index="new-integrations*",
body={
"size": 1000,
"query": {"bool": {"must": [{"term": {"params_loginID": suspicious_logins.loginID}}]}},
Expand All @@ -322,8 +322,8 @@ async def get_initial_search_results(es_client):
dict: The search results.
"""
return es_client.search(
#index="sap_siem_*",
index="new-integrations*",
index="sap_siem_*",
#index="new-integrations*",
body={
"size": 1000,
"query": {"bool": {"must": [{"term": {"event_analyzed_success_login_diff_ip": "False"}}]}},
Expand Down

0 comments on commit 358b286

Please sign in to comment.