# InfluxDB Fetcher - Export data in InfluxDB line protocol format

**URL:** <https://community.panodata.org/t/influxdb-fetcher-export-data-in-influxdb-line-protocol-format/188>\
**Category:** The workbench\
**Tags:** influxdb\
**Created:** [January 23, 2021, 5:47pm UTC](https://community.panodata.org/t/influxdb-fetcher-export-data-in-influxdb-line-protocol-format/188 "2021-01-23T17:47:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreas.Motl](https://community.panodata.org/user_avatar/community.panodata.org/andreas.motl/32/9_2.png) [@Andreas.Motl](https://community.panodata.org/u/Andreas.Motl)\
**Post date:** [January 23, 2021, 5:47pm UTC](https://community.panodata.org/t/influxdb-fetcher-export-data-in-influxdb-line-protocol-format/188/1 "2021-01-23T17:47:30Z")

</div>

## About

InfluxDB Fetcher is a program to fetch data from InfluxDB using the HTTP query API and export it into InfluxDB line protocol format. It has been conceived by [Henri Gomez](https://github.com/hgomez).

> **[hgomez/influxdb](https://github.com/hgomez/influxdb)**
>
> InfluxDB Tools. Contribute to hgomez/influxdb development by creating an account on GitHub.

## Features

- Export data from InfluxDB in line protocol format.
- Fetch subsets of data from InfluxDB by using an InfluxQL expression.
- Optionally transform fields to tags.
- Guidelines how to rename fields or manipulate values using `sed`.

## Setup

```auto
wget --no-clobber --output-document="/usr/local/bin/influxdb-fetcher" https://raw.githubusercontent.com/hgomez/influxdb/master/bin/influxdb-fetcher
chmod +x /usr/local/bin/influxdb-fetcher

```

## Synopsis

```auto
influxdb-fetcher \
    http://influxdb.example.org:8086 root root aqi_readings \
    "SELECT station_type, latitude, longitude, aqi_value FROM testdrive GROUP BY station_type LIMIT 100"

```
