# InfluxDB v2 support in ntopng is Now (partially) Available | ntop

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

# InfluxDB v2 support in ntopng is Now (partially) Available

June 21, 20243 min read

It’s been 3 years since InfluxDB v.2 was released and until a couple of months ago we didn’t plan to add the support to the InfluxDB v.2 due to many reasons: migration from SQL to Flux query language, v2 performance not better than v1. The in the meantime InfluxData release InfluxDB v3 that is currently only supported on their cloud and not yet packaged as on-prem product.

However due to the more pressing requests and suggestions from our customers we finally decided to add the support as follows: as InfluxDB v.2 still partially supports v.1 REST API (that’s how we implemented the support to the v.1) , so why not just tunes the few changes still using the v.1 REST API?

## HowTo Configure InfluxDB 2.x

Now let’s see how to create and configure an InfluxDB bucket that supports v.1.

First of all let’s start by logging in InfluxDB v.2 web interface and jump to the buckets; then let’s create a new bucket named ntopng.

[![](/images/2024/06/Screenshot-2024-06-20-101014.webp)](https://www.ntop.org/images/2024/06/Screenshot-2024-06-20-101014.webp)

Now what we need to do is enabling the support of this bucket, to the InfluxDB v.1 REST API; to do that we need to jump to the terminal and run the following command:

influx v1 auth create --read-bucket BUCKET\_ID --write-bucket BUCKET\_ID --username USERNAME\_FOR\_NTOPNG --password USERNAME\_FOR\_NTOPNG --org YOUR\_ORGANIZATION --token REST\_API\_TOKEN\_PROVIDED\_BY\_INFLUX

Where:

-   BUCKET\_ID, is the bucket id you can find in the InfluxDB GUI (e.g. if we use the ntopng bucket of the screenshot above, it’s the 423e05d0910df7cb)
-   USERNAME\_FOR\_NTOPNG, PASSWORD\_FOR\_NTOPNG, are the username and password that soon we are going to add in the ntopng web interface (InfluxDB Authentication)
-   YOUR\_ORGANIZATION, is the organization name is the one used by InfluxDB (i didn’t change it during my tests, so it was the one I inserted when logging in for the first time in InfluxDB)
-   REST\_API\_TOKEN\_PROVIDED\_BY\_INFLUX, is instead the REST API provided when logging in the first time or it can be generated from the API TOKENS section of InfluxDB GU

[![](/images/2024/06/Screenshot-2024-06-20-101954.webp)](https://www.ntop.org/images/2024/06/Screenshot-2024-06-20-101954.webp)

Now the InfluxDB part is totally configured, let’s see ntopng.

Let’s directly jump to the Settings -> Preferences -> Timeseries tab

![](/images/2024/06/Screenshot-2024-06-20-at-23.53.33.webp)

Let’s select as *Timeseries Driver* InfluxDB 1.x and lets fill the various preferences in the following way:

-   *InfluxDB URL* , The InfluxDB URL used for REST API (by default, `http://localhost:8086`)
-   *InfluxDB Database* , The bucket name we previously created especially for ntopng (in the example above, it was named *ntopng*)
-   Enable the *InfluxDB Authentication*
-   *Username* , the USERNAME\_FOR\_NTOPNG previously created by running the influx command
-   *Password*, the PASSWORD\_FOR\_NTOPNG previously created by running the influx command

And that’s it!

From now on all the data are going to be exported to InfluxDB v.2 correctly!

[![](/images/2024/06/Screenshot-2024-06-20-103045.webp)](https://www.ntop.org/images/2024/06/Screenshot-2024-06-20-103045.webp)

**Note:** an important thing to know is that in InfluxDB v.2 it was removed the support to the RETENTION, CREATE and DROP keywords from the REST API. For this reason the Retention and Relative DROP of old data, has to be managed by the InfluxDB v.2 Web Interface and cannot handled by ntopng itself (like for the v.1).

Enjoy!

## Keep reading

[![](/images/2026/02/ntopng_dashboard.webp)](https://www.ntop.org/network-traffic-analyzer-what-to-look-for/)

ntopngDec 2, 2026

### [Network Monitoring Tools in 2027: What to Look For](https://www.ntop.org/network-traffic-analyzer-what-to-look-for/)

What to look for in network monitoring tools in 2027: five questions, flows vs packets, encrypted traffic, post-quantum readiness, and a free option.

ntopngNov 30, 2026

### [Tags in ntopng: Automatically Spot (and Track) Misconfigured Hosts](https://www.ntop.org/asset-tags-and-ttl/)

Bind ntopng tags to applications or flow risks to tag misconfigured hosts automatically, and let a TTL drop them from the list once they are fixed

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.

## 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/influxdb-v2-support-in-ntopng-is-now-partially-available/