File tree Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## [ 0.19.1] - 2025-09-19
9
+ ### Fixed
10
+ - Create data export for all log types flag
11
+
8
12
## [ 0.19.0] - 2025-09-18
9
13
### Added
10
14
- Support for export native dashboard method
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
5
5
[project ]
6
6
name = " secops"
7
- version = " 0.19.0 "
7
+ version = " 0.19.1 "
8
8
description = " Python SDK for wrapping the Google SecOps API for common use cases"
9
9
readme = " README.md"
10
10
requires-python = " >=3.7"
Original file line number Diff line number Diff line change @@ -199,7 +199,15 @@ def create_data_export(
199
199
200
200
# Add export_all_logs if True
201
201
if export_all_logs :
202
- payload ["export_all_logs" ] = True
202
+ # Setting log type as ALL TYPES for all log export
203
+ payload ["log_type" ] = (
204
+ f"projects/{ client .project_id } /"
205
+ f"locations/{ client .region } /instances/"
206
+ f"{ client .customer_id } /logTypes/ALL_TYPES"
207
+ )
208
+ # export_all_logs parameter is currently not valid
209
+ # TODO: Revert back to export_all_logs once parameter works
210
+ # payload["export_all_logs"] = True
203
211
204
212
# Construct the URL and send the request
205
213
url = f"{ client .base_url } /{ client .instance_id } /dataExports"
Original file line number Diff line number Diff line change @@ -173,9 +173,8 @@ def test_create_data_export_with_all_logs(chronicle_client):
173
173
174
174
# Check that the request payload included export_all_logs
175
175
mock_post .assert_called_once ()
176
- args , kwargs = mock_post .call_args
177
- assert kwargs ["json" ]["export_all_logs" ] is True
178
- assert "log_type" not in kwargs ["json" ]
176
+ _ , kwargs = mock_post .call_args
177
+ assert "ALL_TYPES" in kwargs ["json" ]["log_type" ]
179
178
180
179
181
180
def test_cancel_data_export (chronicle_client ):
You can’t perform that action at this time.
0 commit comments