Log Browser isn't showing anything on Tyk Dashboard

Hi.

After I call API, and I select the Log Browser for looking request/response log,
it isn’t to show anything on the dashboard. Please suggest me to solve this problem.

P.S. I install Tyk on CentOS.

Thanks for help me.

Do you get any other analytics (i,e. in the graphs)

No, nothing at all. Both of graphs and log isn’t showing.

Thank you Martin

Ok, have you installed Tyk Pump?

This is additional description, I install software version on below

tyk-dashboard-1.3.2.2
tyk-pump-0.4.1.1
tyk-gateway-2.3.2

And I checked The software all of running. When I test call API using by postman or browser, I had response from API.

Thank you Martin

Right, in your tyk.conf do you have "enable_analytics": true?

Absolutely, I checked in tyk.conf. The configuration already is “enable_analytics” : true.

Thank you Martin.

Ok cool, what do the logs look like from your Tyk pump?

If it is recording data it will be outputting infromation saying how many records are being stored.

Also:

  1. Can you share (anonymised) pump.conf?
  2. Can you share your (anonymised) tyk_analytics.conf?

Yes, I can. The configuration is in below

This is pum.conf

{
“analytics_storage_type”: “redis”,
“analytics_storage_config”: {
“type”: “redis”,
“host”: “localhost”,
“port”: 6379,
“hosts”: null,
“username”: “”,
“password”: “”,
“database”: 0,
“optimisation_max_idle”: 100,
“optimisation_max_active”: 0,
“enable_cluster”: false
},
“purge_delay”: 10,
“pumps”: {
“mongo”: {
“name”: “mongo”,
“meta”: {
“collection_name”: “tyk_analytics”,
“mongo_url”: “mongodb://127.0.0.1/tyk_analytics”
}
},
“mongo-pump-aggregate”: {
“name”: “mongo-pump-aggregate”,
“meta”: {
“mongo_url”: “mongodb://127.0.0.1/tyk_analytics”,
“use_mixed_collection”: true
}
}
},
“uptime_pump_config”: {
“collection_name”: “tyk_uptime_analytics”,
“mongo_url”: “mongodb://127.0.0.1/tyk_analytics”
},
“dont_purge_uptime_data”: false
}

This is tyk_analytics.conf

{
“listen_port”: 3000,
“tyk_api_config”: {
“Host”: “http://localhost”,
“Port”: “8080”,
“Secret”: “352d20ee67be67f6340b4c0605b044b7”
},
“mongo_url”: “mongodb://127.0.0.1/”,
“page_size”: 10,
“admin_secret”: “12345”,
“shared_node_secret”: “352d20ee67be67f6340b4c0605b044b7”,
“redis_port”: 6379,
“redis_host”: “localhost”,
“redis_password”: “”,
“enable_cluster”: false,
“force_api_defaults”: false,
“notify_on_change”: true,
“license_key”: “hidden” /I changed the license_key./
“redis_database”: 0,
“redis_hosts”: null,
“hash_keys”: true,
“email_backend”: {
“enable_email_notifications”: false,
“code”: “”,
“settings”: null,
“default_from_email”: “”,
“default_from_name”: “”
},
“hide_listen_path”: false,
“sentry_code”: “”,
“sentry_js_code”: “”,
“use_sentry”: false,
“enable_master_keys”: false,
“enable_duplicate_slugs”: true,
“show_org_id”: true,
“host_config”: {
“enable_host_names”: true,
“disable_org_slug_prefix”: true,
“hostname”: “localhost”,
“override_hostname”: “localhost”,
“portal_domains”: {},
“portal_root_path”: “/portal”,
“generate_secure_paths”: false,
“use_strict_hostmatch”: false
},
“http_server_options”: {
“use_ssl”: false,
“certificates”: [
{
“domain_name”: “”,
“cert_file”: “”,
“key_file”: “”
}
],
“min_version”: 0
},
“ui”: {
“languages”: {
“Chinese”: “cn”,
“English”: “en”,
“Korean”: “ko”
},
“hide_help”: false,
“default_lang”: “en”,
“login_page”: {},
“nav”: {},
“uptime”: {},
“portal_section”: null,
“designer”: {},
“dont_show_admin_sockets”: false,
“dont_allow_license_management”: false,
“dont_allow_license_management_view”: false
},
“home_dir”: “/opt/tyk-dashboard”,
“identity_broker”: {
“enabled”: false,
“host”: {
“connection_string”: “http://localhost:3010”,
“secret”: “934893845123491238192381486djfhr87234827348”
}
},
“tagging_options”: {
“tag_all_apis_by_org”: false
},
“use_sharded_analytics”: false,
“enable_aggregate_lookups”: true,
“enable_analytics_cache”: false,
“aggregate_lookup_cutoff”: “01/07/2016”,
“maintenance_mode”: false,
“allow_explicit_policy_id”: false,
“private_key_path”: “”,
“node_schema_path”: “”,
“oauth_redirect_uri_separator”: “;”,
“statsd_connection_string”: “”,
“statsd_prefix”: “”
}

Thank you Martin

This is the problem I think, it should be:

"mongo_url": "mongodb://127.0.0.1/tyk_analytics",

Sorry, I’m lost Martin. I have followed for your suggest, it doesn’t work, The result are the same before edit tyk_analytics.conf. Do you have another suggest with me.

Thank you Martin

Can you share the log output from your pump.conf and your tyk.conf when you put traffic through?

Yes, I can share the log output with you. But I would like to ask you about log file path in CentOS, Can you guideline with me?

You will need to use journald on CentOS to filter for the tyk-gateway, tyk-dashboard and tyk-pump services