ntop / ntop/nProbe

Flows not being ingested into ClickHouse DB

Open
#582 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
1.8k
Forks
51
PR merge metrics
No merged PRs in 30d

Description

Hi,

We are trying to use nProbe to capture IPFIX packets being sent to us from NetFlow exporters on separate machines and store them in a Clickhouse Database. However, we found that the flows are not being ingested into the DB fully. The following error is displayed:

: While executing ParallelParsingBlockInputFormat: data for INSERT was parsed from stdin: (in query: INSERT INTO flows (IN_SRC_MAC,OUT_DST_MAC,INPUT_SNMP,OUTPUT_SNMP,SRC_VLAN,IPV4_SRC_ADDR,IPV4_DST_ADDR,L4_SRC_PORT,L4_DST_PORT,IPV6_SRC_ADDR,IPV6_DST_ADDR,IP_PROTOCOL_VERSION,PROTOCOL,L7_PROTO,L7_CONFIDENCE,IN_BYTES,IN_PKTS,OUT_BYTES,OUT_PKTS,FIRST_SWITCHED,LAST_SWITCHED,CLIENT_TCP_FLAGS,SERVER_TCP_FLAGS,L7_PROTO_RISK,L7_RISK_SCORE,EXPORTER_IPV4_ADDRESS,DIRECTION,SAMPLING_INTERVAL,TOTAL_FLOWS_EXP,NPROBE_IPV4_ADDRESS,POST_NAT_SRC_IPV4_ADDR,POST_NAT_DST_IPV4_ADDR,POST_NAPT_SRC_TRANSPORT_PORT,POST_NAPT_DST_TRANSPORT_PORT) FORMAT CSV): (in file/uri (fd = 0)): (at row 581)
. (CANNOT_PARSE_INPUT_ASSERTION_FAILED)

The following command was used for nProbe:
nprobe --zmq "tcp://*:5556" -i none -n none --collector-port 2055 -T "@NTOPNG@" --clickhouse=127.0.0.1:ntop::default:(PASSWORD)

nProbe Version: 10.2.230720
Build OS: Ubuntu 22.04.2 LTS
License: nProbe Enterprise L

Thank you.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the nProbe command against ClickHouse and inspect the INSERT ... FORMAT CSV failure reported at row 581. The issue mentions no repository files or tests, so first identify where ClickHouse ingestion and CSV formatting are handled. Done means the captured flows are fully ingested without CANNOT_PARSE_INPUT_ASSERTION_FAILED.

Written by the indexing model from the issue text.

Assessment

Tech stack
clickhouse
Domain
databases, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.