chronicle / cbn-tool Goto Github PK
View Code? Open in Web Editor NEWCommand line tool to interact with Chronicle's Config Based Normalizer (CBN) APIs.
Home Page: https://chronicle.security
License: Apache License 2.0
Command line tool to interact with Chronicle's Config Based Normalizer (CBN) APIs.
Home Page: https://chronicle.security
License: Apache License 2.0
Desired behaviour:
--credentials_file
should accept a path pointing to the ouath file for authentication--region=EUROPE
should change the Chronicle region.Current Behaviour
When run with
python3 cbn_cli.py gen --log_type=SONIC_FIREWALL --start_date=2022-01-31T00:00:00Z --end_date=2022-01-31T12:00:00Z --credentials_file=/Users/me/Documents/code/chronicle/keys/auth.json --region="EUROPE"
result in errors for both args
cbn_cli.py: error: unrecognized arguments: --credentials_file=/Users/me/Documents/code/chronicle/keys/auth.json --region=EUROPE
Workaround
DEFAULT_CREDS_FILE_PATH
to a key fie on line 37Troubleshooting so far
Env
Discussed with darrenswift who requested I make the issue here
When I run the command:
$ python3 cbn_cli.py gen --credentials_file ~/bk_credentials.json --log_type=GCP_DNS --start_date=2021-01-01 --end_date=2021-04-29
I get the following error:
usage: cbn_cli.py [-h] [--region {US,EUROPE,ASIA}] [--credentials_file CREDENTIALS_FILE] {generate,g,gen,run,r,submit,status,list,history,archive,download,error,e,err} ...
cbn_cli.py: error: argument --credentials_file: /home/applmak/.chronicle_credentials.json does not exist
which is unexpected. Either the flag-parsing is wrong, or the script is ignore the argument.
Hi there, the cbn tool does not seem to support includes. I think this is because the include is stored locally and not on the server so when running tests the includes are not followed. Is there a way we can pre parse the config and follow the include links to effectively build a temporary conf file with the includes all embedded? Otherwise I am only able to manually embed them which is fine for one or two but any more and things get unwieldy. Just an idea for an FR perhaps??.
For the non US regions of Chronicle can we please ensure the readme or docs are up to date with appending the correct regional variable e.g 'europe-'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.