{ // CGRateS Configuration file // "general": { "node_id": "CGRateSTutorial", "log_level": 7 }, "listen": { "rpc_json": ":2012", "rpc_gob": ":2013", "http": ":2080", }, "data_db": { "db_type": "mongo", "db_port": 27017, }, "stor_db": { "db_type": "mongo", "db_port": 27017, }, "schedulers": { "enabled": true, "cdrs_conns": ["*localhost"], }, "rals": { "enabled": true, "thresholds_conns": ["*localhost"], "stats_conns": ["*localhost"], }, "cdrs": { "enabled": true, "extra_fields": ["PayPalAccount", "LCRProfile", "ResourceID"], "chargers_conns":["*localhost"], "store_cdrs": true, "online_cdr_exports": [] }, "cdre": { "amqp_localhost": { "export_format": "*amqp_json_map", "export_path": "amqp://guest:guest@localhost:5672/?queue_id=cgrates_cdrs", "fields": [ {"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"}, {"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"}, {"path": "*exp.ToR", "type": "*variable", "value": "~*req.ToR"}, {"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"}, {"path": "*exp.OriginHost", "type": "*variable", "value": "~*req.OriginHost"}, {"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType", }, {"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"}, {"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"}, {"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"}, {"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"}, {"path": "*exp.SetupTime", "type": "*variable", "value": "~*req.SetupTime"}, {"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime"}, {"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"}, {"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost"}, {"path": "*exp.PayPalAccount", "type": "*variable", "value": "~*req.PayPalAccount"}, {"path": "*exp.LCRProfile", "type": "*variable", "value": "~*req.LCRProfile", }, {"path": "*exp.ResourceID", "type": "*variable", "value": "~*req.ResourceID", }, ], }, }, "sessions": { "enabled": true, "resources_conns": ["*localhost"], "routes_conns": ["*localhost"], "attributes_conns": ["*localhost"], "rals_conns": ["*internal"], "cdrs_conns": ["*internal"], "chargers_conns": ["*internal"], }, "attributes": { "enabled": true, "string_indexed_fields": ["Account"] }, "chargers": { "enabled": true, "attributes_conns": ["*localhost"], "string_indexed_fields": ["Account"] }, "resources": { "enabled": true, "thresholds_conns": ["*localhost"], "string_indexed_fields": ["Account"] }, "stats": { "enabled": true, "thresholds_conns": ["*localhost"], "string_indexed_fields": ["Account"] }, "thresholds": { "enabled": true, "string_indexed_fields": ["Account"] }, "routes": { "enabled": true, "string_indexed_fields": ["LCRProfile"], "prefix_indexed_fields":["Destination"], }, "apiers": { "enabled": true, "scheduler_conns": ["*internal"], }, "filters": { "apiers_conns": ["*internal"], }, }