@@ -4,6 +4,12 @@ command, for example:
44```
55devo-faker -t template --config config.json -i
66```
7+
8+ Or all in config file
9+ ```
10+ devo-faker --config config.json
11+ ```
12+
713This command uses the template indicated with the configuration inside the
814config.json file and makes the process interactive.
915
@@ -26,27 +32,36 @@ Options:
2632 will only store the events in a file. Can be
2733 used with batch mode to set the file where
2834 store the batch events
35+
2936 --simulation Set as simulation. Shows the event in the
3037 console, but do not send it
38+
3139 -t, --template FILENAME Template to send. [required]
40+ -p, --providers FILENAME File with custom providers dict.
3241 -i, --interactive Interactive mode.
3342 -raw, --raw_mode Send raw mode.
34- --prob INTEGER Probability (0-100).
35- --freq TEXT Frequency in seconds. Example:"1.0-5.0" =
43+ --probability INTEGER Probability (0-100).
44+ --frequency TEXT Frequency in seconds. Example: "1.0-5.0" =
3645 random time between 1 sec. to 5secs.
46+
3747 --batch_mode Enable blatch mode, a lot of events will be
3848 generated as fast as possible and written to a
3949 file. The events will be generated in thetime
4050 range specified by the --date_range option
51+
4152 --date_range <TEXT TEXT>... batch mode: Date range where the logs will be
4253 generated, default: the last 24 hours
54+
4355 --date_format TEXT (batch mode) Format of the generated dates.
4456 default: "%Y-%m-%d %H:%M:%S.%f"
57+
4558 --dont_remove_microseconds (batch mode) By default the microseconds are
4659 removed from the generated dates by doing
4760 date[:-3] this flags prevents it
61+
4862 --verbose Verbose mode shows the events created in the
4963 console when sending dta into Devo.
64+
5065 --help Show this message and exit.
5166```
5267
@@ -60,20 +75,24 @@ The config.json file could be like this:
6075 "tag": "test.keep.free",
6176 "address": "eu.elb.relay.logtrust.net",
6277 "port": 443
63- }
78+ },
79+ "verbose": true,
80+ "probability": 80,
81+ "frequency": (2,4)
6482}
6583```
6684
6785config.yaml its available too:
6886```
69- {
70- "sender": {
71- "key": "<path_to_key>.key",
72- "cert": "<path_to_cert>.crt",
73- "chain": "<path_to_chain>.crt",
74- "tag": "test.keep.free",
75- "address": "eu.elb.relay.logtrust.net",
76- "port": 443
77- }
78- }
87+ sender:
88+ key: "<path_to_key>.key",
89+ cert: "<path_to_cert>.crt",
90+ chain: "<path_to_chain>.crt",
91+ tag: "test.keep.free",
92+ address: "eu.elb.relay.logtrust.net",
93+ port: 443
94+ simulation: true
95+ probability: 50
96+ frequency: (1,3)
97+ providers: providers.py
7998```
0 commit comments