# Using ClickHouse Cloud with ntopng | ntop

[Blog](https://www.ntop.org/blog/)[Announce](https://www.ntop.org/category/announce/)[ntopng](https://www.ntop.org/category/ntopng/)

# Using ClickHouse Cloud with ntopng

May 7, 20241 min read

We are happy to announce that from the latest ntopng dev (6.1) version, ntopng supports exporting data (flows & alerts) to ClickHouse Cloud. Below you can find a step-by-step guide.

## Quick Start

First of all let’s start by creating our account and service on the ClickHouse Cloud (you can find the official guide [here](https://clickhouse.com/docs/en/cloud-quick-start)); remember to save the ClickHouse username and password used for accessing your database.

After that we have to jump to the ‘Connect’ section:

[![](/images/2024/05/Screenshot-2024-05-07-144403-1.webp)](https://www.ntop.org/images/2024/05/Screenshot-2024-05-07-144403-1.webp)

Then, we have to select MySQL, turn on “Enable the MySQL protocol” and collect 3 information needed to the ntopng configuration file:

-   The MySQL Username (it’s an other username, different from the one configured at the start)
-   The Hostname (used to connect to the right Host)
-   The Port (MySQL port, to connect in order to run queries)

[![](/images/2024/05/Screenshot-2024-05-07-155553.webp)](https://www.ntop.org/images/2024/05/Screenshot-2024-05-07-155553.webp)

After collecting these 3 info, let’s jump back to ntopng and let’s edit the configuration file.

Here we have to add (or modify if already there) the -F option, by following the ntopng documentation ([here](https://www.ntop.org/guides/ntopng/cli_options/cli_options.html)):

-   clickhouse-cloud;<host\[@\[<tcp-port>,\]<mysql-port>s\]|socket>;<dbname>;<clickhouse-user>,<mysql-user>;<pw>;

So let’s suppose that our previously collected info are the following:

-   ClickHouse username: CH-USER (by default it should be the ‘default’ username, it is provided when creating the Service)
-   MySQL username: MYSQL-USER
-   TCP-Port: by default it’s the 9440
-   MySQL Port: 3306 (default one). Note that you need to add a **s** after the port as this means that we’re pushing data over TLS.
-   Password: CH-PASSWORD (the password used to access the DB, provided when creating the Service)
-   Hostname: CH-HOST

Then our -F option should look like:

\-F=”clickhouse-cloud;CH-HOST@9440,3306**s**;ntopng;CH-USER,MYSQL-USER;CH-PASSWORD”

Note:

-   Both data export and query connections are encrypted and protected by TLS.
-   clickhouse-client is needed on the local machine (where ntopng is) in order to correctly push data to the ClickHouse Cloud. This means that you need to install it as [described here](https://www.ntop.org/guides/ntopng/).

If you want you can read all this in the ntopng [user’s guide](https://www.ntop.org/guides/ntopng/#clickhouse-cloud).

Enjoy!

## Keep reading

ntopngNov 23, 2026

### [Modeling Your Network: Part I](https://www.ntop.org/network-model-intro/)

ntopng is introducing continuous network learning to help administrators close visibility gaps in dynamic networks, starting with a new Server Model feature. Using DPI and historical flow data, the system passively discovers and baselines core servers—alerting operators to unauthorized services, unresponsive hosts, or traffic anomalies while automatically updating network configurations to reduce false-positive security alerts.

nDPINov 7, 2026

### [Detecting CVE-2026-98432 using nDPI/ntopng](https://www.ntop.org/detecting-cve-2026-98432-using-ndpi-ntopng/)

CVE-2026-98432 is a critical, 9.8-severity use-after-free (UAF) vulnerability in the Linux kernel’s IPv4 TCP networking stack. It allows an unauthenticated remote attacker to potentially cause system crashes, memory corruption, or execute arbitrary commands with root privileges. From a network stand

[![](/images/2026/09/Screenshot-2026-09-09-151028-1.webp)](https://www.ntop.org/october-20th-join-us-for-the-ntopng-7-0-webinar/)

AnnounceOct 5, 2026

### [October 20th: Join us for the ntopng 7.0 Webinar](https://www.ntop.org/october-20th-join-us-for-the-ntopng-7-0-webinar/)

Is your network monitoring keeping pace with AI, larger infrastructures, and the growing need for real observability? We’re excited to introduce ntopng 7.0, alongside new releases of the rest of the ntop…

## Try it on your own network

Download the free Community edition and see your first flows in five minutes.

[Download ntopng free](https://www.ntop.org/support/documentation/software-installation/)[Talk to an engineer](https://www.ntop.org/support/need-help/contacts/)
Source: https://www.ntop.org/using-clickhouse-cloud-with-ntopng/