Skip to content

Commit 36c0e47

Browse files
authored
remove formatting options from audit-logs send-to (#182)
* remove formatting options from `audit-logs send-to` * use RAW-JSON
1 parent 0b567f0 commit 36c0e47

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/code42cli/cmds/auditlogs.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from code42cli.options import end_option
1515
from code42cli.options import format_option
1616
from code42cli.options import sdk_options
17-
from code42cli.options import send_to_format_options
1817
from code42cli.options import server_options
1918
from code42cli.output_formats import OutputFormatter
2019
from code42cli.util import hash_event
@@ -173,13 +172,11 @@ def search(
173172
@filter_options
174173
@checkpoint_option
175174
@server_options
176-
@send_to_format_options
177175
@sdk_options()
178176
def send_to(
179177
state,
180178
hostname,
181179
protocol,
182-
format,
183180
begin,
184181
end,
185182
event_type,
@@ -190,8 +187,8 @@ def send_to(
190187
affected_username,
191188
use_checkpoint,
192189
):
193-
"""Send audit logs to the given server address."""
194-
logger = get_logger_for_server(hostname, protocol, format)
190+
"""Send audit logs to the given server address in JSON format."""
191+
logger = get_logger_for_server(hostname, protocol, "RAW-JSON")
195192
cursor = _get_audit_log_cursor_store(state.profile.name)
196193
if use_checkpoint:
197194
checkpoint_name = use_checkpoint

0 commit comments

Comments
 (0)