mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 10:36:24 +05:00
84 lines
3.4 KiB
JSON
84 lines
3.4 KiB
JSON
{
|
|
|
|
"logger": {
|
|
"type": "*syslog",
|
|
"level": 7
|
|
},
|
|
|
|
"listen": {
|
|
"rpc_json": ":2012",
|
|
"rpc_gob": ":2013",
|
|
"http": ":2080"
|
|
},
|
|
|
|
"data_db": {
|
|
"db_type": "redis",
|
|
"db_port": 6379,
|
|
"db_name": "10"
|
|
},
|
|
|
|
"ees": {
|
|
"enabled": true,
|
|
"exporters": [
|
|
{
|
|
"id": "*default",
|
|
"type": "*kafkaJSONMap",
|
|
"export_path": "localhost:9093",
|
|
"opts": {
|
|
"kafkaTopic": "ssl-topic",
|
|
"kafkaTLS": true,
|
|
"kafkaCAPath": "/home/kafka/kafka/ssl/ca.pem",
|
|
"kafkaSkipTLSVerify": false
|
|
},
|
|
"failed_posts_dir": "/var/spool/cgrates/failed_posts",
|
|
"efs_conns": ["*internal"]
|
|
}
|
|
]
|
|
},
|
|
|
|
"efs": {
|
|
"enabled": true
|
|
},
|
|
|
|
"sessions": {
|
|
"enabled": true
|
|
},
|
|
|
|
"ers": {
|
|
"enabled": true,
|
|
"readers": [
|
|
{
|
|
"id": "*default",
|
|
"type": "*kafkaJSONMap",
|
|
"run_delay": "-1",
|
|
"flags": ["*dryRun"],
|
|
"source_path": "localhost:9093",
|
|
"processed_path": "localhost:9092",
|
|
"opts": {
|
|
"kafkaTopic": "ssl-topic",
|
|
"kafkaTLS": true,
|
|
"kafkaCAPath": "/home/kafka/kafka/ssl/ca.pem",
|
|
"kafkaSkipTLSVerify": false,
|
|
"kafkaTopicProcessed": "processed-topic",
|
|
"kafkaTLSProcessed": false,
|
|
"kafkaCAPathProcessed": "/home/kafka/kafka/ssl/ca.pem",
|
|
"kafkaSkipTLSVerifyProcessed": false
|
|
},
|
|
"fields": [
|
|
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*variable", "value": "~*req.ToR", "mandatory": true},
|
|
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*variable", "value": "~*req.OriginID", "mandatory": true},
|
|
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*variable", "value": "~*req.RequestType", "mandatory": true},
|
|
{"tag": "Tenant", "path": "*cgreq.Tenant", "type": "*variable", "value": "~*req.Tenant", "mandatory": true},
|
|
{"tag": "Category", "path": "*cgreq.Category", "type": "*variable", "value": "~*req.Category", "mandatory": true},
|
|
{"tag": "Account", "path": "*cgreq.Account", "type": "*variable", "value": "~*req.Account", "mandatory": true},
|
|
{"tag": "Subject", "path": "*cgreq.Subject", "type": "*variable", "value": "~*req.Subject", "mandatory": true},
|
|
{"tag": "Destination", "path": "*cgreq.Destination", "type": "*variable", "value": "~*req.Destination", "mandatory": true},
|
|
{"tag": "SetupTime", "path": "*cgreq.SetupTime", "type": "*variable", "value": "~*req.SetupTime", "mandatory": true},
|
|
{"tag": "AnswerTime", "path": "*cgreq.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "mandatory": true},
|
|
{"tag": "Usage", "path": "*cgreq.Usage", "type": "*variable", "value": "~*req.Usage", "mandatory": true}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|
|
} |