influxdata / influxdata/docs-v2

How to use `influx3` CLI to write multiple line protocol records with a single command (not CSV)

Open
#4,986 0 comments 0 reactions 1 assignee View on GitHub

@jstirnaman is already working on this.

Since Jun 15, 2023.

Dominant language
JavaScript
Stars
82
Forks
326
Avg merge
1d 1h
Merged PRs (30d)
82

Description

@Jayclifford345 Is there an elegant way to use `influx3` alone or with bash commands to write a batch of line protocol in a single command?
I tried several ways of providing a list of records, but can't find one that writes them all.

I also tried this:

```sh
for line in "${lines[@]}"; do
echo "$line" | xargs -I record influx3 write record
done
```

But the quotes aren't right, and it's less than elegant.

##### Relevant URLs
- https://github.com/InfluxCommunity/influxdb3-python-cli

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.