-
Notifications
You must be signed in to change notification settings - Fork 20
/
config.schema.json
872 lines (872 loc) · 39.4 KB
/
config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"AbiRepositoryConfigSchema": {
"description": "The ABI repository is used to decode ABI information from smart contract calls and event logs.\nIt generates and adds some additional information in transactions and events, including smart contract\nmethod call parameter names, values and data types, as well as smart contract names associated with a\nparticular contract address.",
"properties": {
"abiFileExtension": {
"description": "Set to `.json` by default as the file extension for ABIs",
"type": "string"
},
"decodeAnonymous": {
"description": "If enabled, ethlogger will attempt to decode function calls and event logs using a set of\ncommon signatures as a fallback if no match against any supplied ABI definition was found.",
"type": "boolean"
},
"directory": {
"description": "If specified, the ABI repository will recursively search this directory for ABI files",
"type": "string"
},
"fingerprintContracts": {
"description": "If enabled, the ABI repository will creates hashes of all function and event signatures of an ABI\n(the hash is the fingerprint) and match it against the EVM bytecode obtained from live smart contracts\nwe encounter.",
"type": "boolean"
},
"reconcileStructShapeFromTuples": {
"description": "If enabled, ethlogger will attempt to reconcile the shape of struct definitions from decoded tuples\ndata if the ABI definition contains names for each of the tuple components. This basically turns\nthe decoded array into an key-value map, where the keys are the names from the ABI definition.",
"type": "boolean"
},
"requireContractMatch": {
"description": "If enabled, signature matches will be treated as anonymous (parameter names will be omitted from\nthe output) if a contract cannot be tied to an ABI definition via either a fingerprint match,\nor a contract address match (when the ABI file includes the address of the deployed contract).\nEnabled by default. Setting this to `false` will output parameter names for any matching signature.",
"type": "boolean"
},
"searchRecursive": {
"description": "`true` to search ABI directory recursively for ABI files",
"type": "boolean"
}
},
"type": "object"
},
"BalanceWatcherConfigSchema": {
"description": "Balance watcher is a component tracking transfers of a token and reporting balances of its accounts.",
"properties": {
"blocksMaxChunkSize": {
"description": "Max. number of blocks to fetch at once",
"type": "number"
},
"contractAddress": {
"description": "The address of the contract to watch.",
"type": "string"
},
"decimals": {
"description": "The number of decimals to divide balances with.",
"type": "number"
},
"enabled": {
"description": "Specify `false` to disable the balance watcher",
"type": "boolean"
},
"endAt": {
"description": "This optionally specifies at which block the watcher should stop collecting data.",
"type": "number"
},
"logEthBalance": {
"description": "Log the account ethereum balance",
"type": "boolean"
},
"maxParallelChunks": {
"description": "Max. number of chunks to process in parallel",
"type": "number"
},
"pollInterval": {
"description": "Interval in which to look for the latest block number (if not busy processing the backlog)",
"type": ["string", "number"]
},
"retryWaitTime": {
"anyOf": [
{
"$ref": "#/definitions/ExponentialBackoffConfig"
},
{
"$ref": "#/definitions/LinearBackoffConfig"
},
{
"type": ["string", "number"]
}
],
"description": "Wait time before retrying to fetch and process blocks after failure"
},
"startAt": {
"anyOf": [
{
"enum": ["genesis", "latest"],
"type": "string"
},
{
"type": "number"
}
],
"description": "If no checkpoint exists (yet), this specifies which block should be chosen as the starting point."
}
},
"type": "object"
},
"BalanceWatchersConfigSchema": {
"additionalProperties": {
"$ref": "#/definitions/BalanceWatcherConfigSchema"
},
"description": "Balance watchers is a component tracking transfers of tokens and reporting balances of accounts.",
"type": "object"
},
"BlockWatcherConfigSchema": {
"description": "Block watcher is the component that retrieves blocks, transactions, event logs from the node and sends\nthem to output.",
"properties": {
"blocksMaxChunkSize": {
"description": "Max. number of blocks to fetch at once",
"type": "number"
},
"decryptPrivateTransactions": {
"description": "For chains/nodes that do support private transactions, this setting instructs block watcher to\nattempt to load the decrypted payload for private transactions",
"type": "boolean"
},
"enabled": {
"description": "Specify `false` to disable the block watcher",
"type": "boolean"
},
"maxParallelChunks": {
"description": "Max. number of chunks to process in parallel",
"type": "number"
},
"pollInterval": {
"description": "Interval in which to look for the latest block number (if not busy processing the backlog)",
"type": ["string", "number"]
},
"retryWaitTime": {
"anyOf": [
{
"$ref": "#/definitions/ExponentialBackoffConfig"
},
{
"$ref": "#/definitions/LinearBackoffConfig"
},
{
"type": ["string", "number"]
}
],
"description": "Wait time before retrying to fetch and process blocks after failure"
},
"startAt": {
"anyOf": [
{
"enum": ["genesis", "latest"],
"type": "string"
},
{
"type": "number"
}
],
"description": "If no checkpoint exists (yet), this specifies which block should be chosen as the starting point."
}
},
"type": "object"
},
"CheckpointConfigSchema": {
"description": "The checkpoint is where ethlogger keeps track of its state, which blocks have already been processed.\nThis allows it to resume where it left off after being shut down and restarted.",
"properties": {
"filename": {
"default": "checkpoints.json",
"description": "File path (relative to the current working directory) where the checkpoint file will be stored",
"type": "string"
},
"saveInterval": {
"description": "Maximum duration before saving updated checkpoint information to disk",
"type": ["string", "number"]
}
},
"type": "object"
},
"ConsoleOutputConfig": {
"description": "Console output prints all generated events and metrics to STDOUT",
"properties": {
"type": {
"enum": ["console"],
"type": "string"
}
},
"type": "object"
},
"ContractInfoConfigSchema": {
"description": "Ethlogger checks for each address it encounters whether it is a smart contract by attempting to\nretrieve the contract code. To reduce the performance hit by this operation, ethlogger can cache\ncontract information in memory.",
"properties": {
"maxCacheEntries": {
"description": "Maximum number of contract info results to cache in memory. Set to 0 to disable the cache.",
"type": "number"
}
},
"type": "object"
},
"DevNullOutputConfig": {
"description": "Null output will just drop all generated events and metrics",
"properties": {
"type": {
"enum": ["null"],
"type": "string"
}
},
"type": "object"
},
"EthereumClientConfigSchema": {
"description": "Ethereum client settings - configure batching multiple JSON RPC method calls into single HTTP requests",
"properties": {
"maxBatchSize": {
"description": "Maximum number of JSON RPC requests to pack into a single batch. Set to `1` to disable batching.",
"type": "number"
},
"maxBatchTime": {
"description": "Maximum time to wait before submitting a batch of JSON RPC requests",
"type": ["string", "number"]
}
},
"type": "object"
},
"EthereumConfigSchema": {
"description": "General Ethereum configuration including client and transport, defining how ethlogger talks to the ethereum node",
"properties": {
"chain": {
"description": "Chain name logged as a field with every event and metric.\nEthlogger will attempt to automatically determine if not specified\nbut there are only a handful of known public chainIds associated\nwith particular ethereum-based chains. This value will allow\nconsumers of data to distinguish between different chains\nin case multiple chains are being logged to one place.",
"type": "string"
},
"client": {
"$ref": "#/definitions/EthereumClientConfigSchema",
"description": "Ethereum client configuration"
},
"http": {
"$ref": "#/definitions/HttpTransportConfigSchema",
"description": "HTTP transport configuration"
},
"network": {
"description": "Network name logged as a field with every event and metric.\nEthlogger will attempt to automatically determine if not specified\nbut there are only a handful of known public networkIds associated\nwith particular networks (ethereum mainnet, ropsten, ...). Typical\nvalues of the network name are `\"mainnet\"` or `\"testnet\"`.",
"type": "string"
},
"url": {
"description": "URL of JSON RPC endpoint",
"type": "string"
}
},
"type": "object"
},
"ExponentialBackoffConfig": {
"description": "Exponentially increasing wait time with randomness",
"properties": {
"max": {
"description": "Maximum wait time",
"type": ["string", "number"]
},
"min": {
"description": "Minimum wait time",
"type": ["string", "number"]
},
"type": {
"enum": ["exponential-backoff"],
"type": "string"
}
},
"type": "object"
},
"FileOutputConfig": {
"description": "File output will append all generated messages to a file. (this output type has not been implemented)",
"properties": {
"path": {
"description": "Path to output file",
"type": "string"
},
"type": {
"enum": ["file"],
"type": "string"
}
},
"type": "object"
},
"HecClientsConfigSchema": {
"properties": {
"default": {
"$ref": "#/definitions/HecConfigSchema",
"description": "Base settings that apply to all HEC clients. Overrides for events, metrics and\ninternal metrics will be layered on top of the defaults and allow for using\ndifferent HEC tokens, URL or destination index."
},
"events": {
"$ref": "#/definitions/Partial<HecConfigSchema>",
"description": "HEC settings (overrides for `default`) for events sent to Splunk"
},
"internal": {
"$ref": "#/definitions/Partial<HecConfigSchema>",
"description": "HEC settings (overrides for `default`) for internal metrics sent to Splunk"
},
"metrics": {
"$ref": "#/definitions/Partial<HecConfigSchema>",
"description": "HEC settings (overrides for `default`) for metrics sent to Splunk"
}
},
"type": "object"
},
"HecConfigSchema": {
"description": "Settings for the Splunk HTTP Event Collector client",
"properties": {
"defaultFields": {
"additionalProperties": {},
"description": "Default set of fields to apply to all events and metrics sent with this HEC client",
"type": "object"
},
"defaultMetadata": {
"description": "Defaults for host, source, sourcetype and index. Can be overridden for each message",
"properties": {
"host": {
"type": "string"
},
"index": {
"type": "string"
},
"source": {
"type": "string"
},
"sourcetype": {
"type": "string"
}
},
"type": "object"
},
"flushTime": {
"description": "Maximum number of milliseconds to wait before flushing the HEC message queue",
"type": ["string", "number"]
},
"gzip": {
"description": "Gzip compress the request body sent to HEC (Content-Encoding: gzip)",
"type": "boolean"
},
"maxQueueEntries": {
"description": "Maximum number of entries in the HEC message queue before flushing it",
"type": "number"
},
"maxQueueSize": {
"description": "Maximum number of bytes in the HEC message queue before flushing it",
"type": "number"
},
"maxRetries": {
"description": "Maximum number of attempts to send a batch to HEC. By default this there is no limit",
"type": "number"
},
"maxSockets": {
"description": "Maximum number of sockets HEC will use (per host)",
"type": "number"
},
"multipleMetricFormatEnabled": {
"description": "Enable sending multipe metrics in a single message to HEC.\nSupported as of Splunk 8.0.0\n\nhttps://docs.splunk.com/Documentation/Splunk/8.0.0/Metrics/GetMetricsInOther#The_multiple-metric_JSON_format",
"type": "boolean"
},
"requestKeepAlive": {
"description": "Set to `false` to disable HTTP keep-alive for connections to Splunk",
"type": "boolean"
},
"retryWaitTime": {
"anyOf": [
{
"$ref": "#/definitions/ExponentialBackoffConfig"
},
{
"$ref": "#/definitions/LinearBackoffConfig"
},
{
"type": ["string", "number"]
}
],
"description": "Wait time before retrying to send a (batch of) HEC messages after an error"
},
"timeout": {
"description": "Number of milliseconds to wait before considering an HTTP request as failed",
"type": ["string", "number"]
},
"token": {
"description": "The HEC token used to authenticate HTTP requests",
"type": "string"
},
"url": {
"description": "The URL of HEC. If only the base URL is specified (path is omitted) then the default path will be used",
"type": "string"
},
"userAgent": {
"default": "`ethlogger-hec-client/<version>`",
"description": "User-agent header sent to HEC",
"type": "string"
},
"validateCertificate": {
"description": "If set to false, the HTTP client will ignore certificate errors (eg. when using self-signed certs)",
"type": "boolean"
},
"waitForAvailability": {
"description": "If set to > 0, then ethlogger will wait for the HEC service to become available for the given amount of time\nby periodically attempting to request the collector/health REST endpoint. This can be useful when starting\nSplunk and ethlogger for example in docker-compose, where Splunk takes some time to start.",
"type": ["string", "number"]
}
},
"type": "object"
},
"HecOutputConfig": {
"properties": {
"metricsPrefix": {
"description": "A common prefix for all metrics emitted to Splunk",
"type": "string"
},
"sourcetypes": {
"$ref": "#/definitions/SourcetypesSchema",
"description": "Sourcetypes to use for different kinds of events we send to Splunk"
},
"type": {
"enum": ["hec"],
"type": "string"
}
},
"type": "object"
},
"HttpTransportConfigSchema": {
"description": "Settings for ethlogger connecting to the ethereum node via JSON RPC over HTTP",
"properties": {
"maxSockets": {
"description": "Maximum number of sockets HEC will use (per host)",
"type": "number"
},
"proxyUrl": {
"description": "Optional proxy URL to route HTTP requests through. Note: this disables internal httpClient stats",
"type": "string"
},
"requestKeepAlive": {
"description": "Keep sockets to JSON RPC open",
"type": "boolean"
},
"timeout": {
"description": "Time before failing JSON RPC requests. Specify a number in milliseconds or a golang-style duration expression.",
"type": ["string", "number"]
},
"validateCertificate": {
"description": "If set to false, the HTTP client will ignore certificate errors (eg. when using self-signed certs)",
"type": "boolean"
}
},
"type": "object"
},
"InternalMetricsConfigSchema": {
"description": "Ethlogger-internal metrics allow for visibility into the operation of ethlogger itself.",
"properties": {
"collectInterval": {
"description": "Interval in which to collect internal metrics",
"type": ["string", "number"]
},
"enabled": {
"description": "Specify `false` to disable internal metrics collection",
"type": "boolean"
}
},
"type": "object"
},
"LinearBackoffConfig": {
"description": "Linear increasing wait time",
"properties": {
"max": {
"description": "Maximum wait time",
"type": ["string", "number"]
},
"min": {
"description": "Minimum wait time (after the first failure)",
"type": ["string", "number"]
},
"step": {
"description": "Increase of wait time for each failure after the first until max is reached",
"type": ["string", "number"]
},
"type": {
"enum": ["linear-backoff"],
"type": "string"
}
},
"type": "object"
},
"NFTWatcherConfigSchema": {
"description": "NFT watcher is a component tracking transfers of NFTs and reporting their metadata.",
"properties": {
"blocksMaxChunkSize": {
"description": "Max. number of blocks to fetch at once",
"type": "number"
},
"contractAddress": {
"description": "The address of the contract to watch.",
"type": "string"
},
"enabled": {
"description": "Specify `false` to disable the balance watcher",
"type": "boolean"
},
"endAt": {
"description": "This optionally specifies at which block the watcher should stop collecting data.",
"type": "number"
},
"logEthBalance": {
"description": "Log the account ethereum balance",
"type": "boolean"
},
"maxParallelChunks": {
"description": "Max. number of chunks to process in parallel",
"type": "number"
},
"pollInterval": {
"description": "Interval in which to look for the latest block number (if not busy processing the backlog)",
"type": ["string", "number"]
},
"retryWaitTime": {
"anyOf": [
{
"$ref": "#/definitions/ExponentialBackoffConfig"
},
{
"$ref": "#/definitions/LinearBackoffConfig"
},
{
"type": ["string", "number"]
}
],
"description": "Wait time before retrying to fetch and process blocks after failure"
},
"startAt": {
"anyOf": [
{
"enum": ["genesis", "latest"],
"type": "string"
},
{
"type": "number"
}
],
"description": "If no checkpoint exists (yet), this specifies which block should be chosen as the starting point."
}
},
"type": "object"
},
"NFTWatchersConfigSchema": {
"additionalProperties": {
"$ref": "#/definitions/NFTWatcherConfigSchema"
},
"description": "NFT watchers is a component tracking transfers of NFTs and reporting their metadata.",
"type": "object"
},
"NodeInfoConfigSchema": {
"description": "Platform specific node information is collection on regular interval",
"properties": {
"collectInterval": {
"description": "Interval in which to collect node info",
"type": ["string", "number"]
},
"enabled": {
"description": "Specify `false` to disable node info collection",
"type": "boolean"
},
"retryWaitTime": {
"anyOf": [
{
"$ref": "#/definitions/ExponentialBackoffConfig"
},
{
"$ref": "#/definitions/LinearBackoffConfig"
},
{
"type": ["string", "number"]
}
],
"description": "Wait time before retrying to collect node info after failure"
}
},
"type": "object"
},
"NodeMetricsConfigSchema": {
"description": "The node metrics collector retrieves numeric measurements from nodes on a periodic basis.",
"properties": {
"collectInterval": {
"description": "Interval in which to collect node metrics",
"type": ["string", "number"]
},
"enabled": {
"description": "Specify `false` to disable node metrics collection",
"type": "boolean"
},
"retryWaitTime": {
"anyOf": [
{
"$ref": "#/definitions/ExponentialBackoffConfig"
},
{
"$ref": "#/definitions/LinearBackoffConfig"
},
{
"type": ["string", "number"]
}
],
"description": "Wait time before retrying to collect node metrics after failure"
}
},
"type": "object"
},
"Partial<HecConfigSchema>": {
"properties": {
"defaultFields": {
"additionalProperties": {},
"description": "Default set of fields to apply to all events and metrics sent with this HEC client",
"type": "object"
},
"defaultMetadata": {
"description": "Defaults for host, source, sourcetype and index. Can be overridden for each message",
"properties": {
"host": {
"type": "string"
},
"index": {
"type": "string"
},
"source": {
"type": "string"
},
"sourcetype": {
"type": "string"
}
},
"type": "object"
},
"flushTime": {
"description": "Maximum number of milliseconds to wait before flushing the HEC message queue",
"type": ["string", "number"]
},
"gzip": {
"description": "Gzip compress the request body sent to HEC (Content-Encoding: gzip)",
"type": "boolean"
},
"maxQueueEntries": {
"description": "Maximum number of entries in the HEC message queue before flushing it",
"type": "number"
},
"maxQueueSize": {
"description": "Maximum number of bytes in the HEC message queue before flushing it",
"type": "number"
},
"maxRetries": {
"description": "Maximum number of attempts to send a batch to HEC. By default this there is no limit",
"type": "number"
},
"maxSockets": {
"description": "Maximum number of sockets HEC will use (per host)",
"type": "number"
},
"multipleMetricFormatEnabled": {
"description": "Enable sending multipe metrics in a single message to HEC.\nSupported as of Splunk 8.0.0\n\nhttps://docs.splunk.com/Documentation/Splunk/8.0.0/Metrics/GetMetricsInOther#The_multiple-metric_JSON_format",
"type": "boolean"
},
"requestKeepAlive": {
"description": "Set to `false` to disable HTTP keep-alive for connections to Splunk",
"type": "boolean"
},
"retryWaitTime": {
"anyOf": [
{
"$ref": "#/definitions/ExponentialBackoffConfig"
},
{
"$ref": "#/definitions/LinearBackoffConfig"
},
{
"type": ["string", "number"]
}
],
"description": "Wait time before retrying to send a (batch of) HEC messages after an error"
},
"timeout": {
"description": "Number of milliseconds to wait before considering an HTTP request as failed",
"type": ["string", "number"]
},
"token": {
"description": "The HEC token used to authenticate HTTP requests",
"type": "string"
},
"url": {
"description": "The URL of HEC. If only the base URL is specified (path is omitted) then the default path will be used",
"type": "string"
},
"userAgent": {
"default": "`ethlogger-hec-client/<version>`",
"description": "User-agent header sent to HEC",
"type": "string"
},
"validateCertificate": {
"description": "If set to false, the HTTP client will ignore certificate errors (eg. when using self-signed certs)",
"type": "boolean"
},
"waitForAvailability": {
"description": "If set to > 0, then ethlogger will wait for the HEC service to become available for the given amount of time\nby periodically attempting to request the collector/health REST endpoint. This can be useful when starting\nSplunk and ethlogger for example in docker-compose, where Splunk takes some time to start.",
"type": ["string", "number"]
}
},
"type": "object"
},
"PeerInfoConfigSchema": {
"description": "Periodic collection of detailed peer information.\nNote that this is only possible with certain types of ethereum nodes (geth atm)",
"properties": {
"collectInterval": {
"description": "Interval in which to collect peer information",
"type": ["string", "number"]
},
"enabled": {
"description": "Enable or disable collection of peer information",
"type": "boolean"
},
"retryWaitTime": {
"anyOf": [
{
"$ref": "#/definitions/ExponentialBackoffConfig"
},
{
"$ref": "#/definitions/LinearBackoffConfig"
},
{
"type": ["string", "number"]
}
],
"description": "Wait time before retrying to collect peer information after failure"
}
},
"type": "object"
},
"PendingTxConfigSchema": {
"description": "Periodic collection of pending transactions",
"properties": {
"collectInterval": {
"description": "Interval in which to collect pending transactions",
"type": ["string", "number"]
},
"enabled": {
"description": "Enable or disable collection of pending transactions",
"type": "boolean"
},
"retryWaitTime": {
"anyOf": [
{
"$ref": "#/definitions/ExponentialBackoffConfig"
},
{
"$ref": "#/definitions/LinearBackoffConfig"
},
{
"type": ["string", "number"]
}
],
"description": "Wait time before retrying to collect pending transactions after failure"
}
},
"type": "object"
},
"SourcetypesSchema": {
"description": "Configurable set of `sourcetype` field values emitted by ethlogger",
"properties": {
"balance": {
"default": "ethereum:balance",
"type": "string"
},
"block": {
"default": "ethereum:block",
"type": "string"
},
"event": {
"default": "ethereum:transaction:event",
"type": "string"
},
"gethPeer": {
"default": "ethereum:geth:peer",
"type": "string"
},
"nft": {
"default": "ethereum:nft",
"type": "string"
},
"nodeInfo": {
"default": "ethereum:node:info",
"type": "string"
},
"nodeMetrics": {
"default": "ethereum:node:metrics",
"type": "string"
},
"pendingtx": {
"default": "ethereum:transaction:pending",
"type": "string"
},
"transaction": {
"default": "ethereum:transaction",
"type": "string"
}
},
"type": "object"
}
},
"description": "Root configuration schema for ethlogger",
"properties": {
"abi": {
"$ref": "#/definitions/AbiRepositoryConfigSchema",
"description": "ABI repository configuration"
},
"balanceWatchers": {
"$ref": "#/definitions/BalanceWatchersConfigSchema",
"description": "Balance watchers, tracking balance of ERC-20 token holders"
},
"blockWatcher": {
"$ref": "#/definitions/BlockWatcherConfigSchema",
"description": "Block watcher settings, configure how blocks, transactions, event logs are ingested"
},
"checkpoint": {
"$ref": "#/definitions/CheckpointConfigSchema",
"description": "Checkpoint configuration - how ethlogger keeps track of state between restarts"
},
"contractInfo": {
"$ref": "#/definitions/ContractInfoConfigSchema",
"description": "Contract info cache settings"
},
"eth": {
"$ref": "#/definitions/EthereumConfigSchema",
"description": "Ethereum node configuration"
},
"hec": {
"$ref": "#/definitions/HecClientsConfigSchema",
"description": "HTTP event collector"
},
"internalMetrics": {
"$ref": "#/definitions/InternalMetricsConfigSchema",
"description": "Settings for internal metrics collection"
},
"nftWatchers": {
"$ref": "#/definitions/NFTWatchersConfigSchema",
"description": "NFT watchers, tracking balance of ERC-721 token holders"
},
"nodeInfo": {
"$ref": "#/definitions/NodeInfoConfigSchema",
"description": "Settings for the node info collector"
},
"nodeMetrics": {
"$ref": "#/definitions/NodeMetricsConfigSchema",
"description": "Settings for the node metrics collector"
},
"output": {
"anyOf": [
{
"$ref": "#/definitions/HecOutputConfig"
},
{
"$ref": "#/definitions/ConsoleOutputConfig"
},
{
"$ref": "#/definitions/FileOutputConfig"
},
{
"$ref": "#/definitions/DevNullOutputConfig"
}
],
"description": "In the output configuration you can specify where ethlogger will send generated\nmetrics and events to. By default it will send all information to Splunk HEC,\nbut you can instead send it to console output or a file."
},
"peerInfo": {
"$ref": "#/definitions/PeerInfoConfigSchema",
"description": "Settings for collecting peer information from the node"
},
"pendingTx": {
"$ref": "#/definitions/PendingTxConfigSchema",
"description": "Settings for collecting pending transactions from node"
}
},
"type": "object"
}