https://github.com/paepckehh/uniex
unifi controller device inventory exporter, anayses all device and stat records for complete records [mongodb|csv|json] (app/lib/api)
https://github.com/paepckehh/uniex
csv export exporter mongodb unifi
Last synced: 4 days ago
JSON representation
unifi controller device inventory exporter, anayses all device and stat records for complete records [mongodb|csv|json] (app/lib/api)
- Host: GitHub
- URL: https://github.com/paepckehh/uniex
- Owner: paepckehh
- License: bsd-3-clause
- Created: 2024-12-22T11:30:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-03-20T08:28:57.000Z (16 days ago)
- Last Synced: 2026-03-21T01:23:08.256Z (15 days ago)
- Topics: csv, export, exporter, mongodb, unifi
- Language: Go
- Homepage: https://paepcke.de/uniex
- Size: 386 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OVERVIEW
[](https://pkg.go.dev/paepcke.de/uniex)
[](https://goreportcard.com/report/paepcke.de/uniex)
[](https://github.com/paepckehh/uniex/actions/workflows/golang.yml)
[](https://github.com/paepckehh/uniex/blob/master/LICENSE)
[](https://github.com/paepckehh/uniex/releases/latest)
[](https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=uniex)
[paepcke.de/uniex](https://paepcke.de/uniex)
# UNIEX
- Exports UNIFI Controller Inventory Database (mongoDB) to [csv|json]
- Adds missing attributes (latest used hostname, latest used ip, latest seen, ...) via parsing all device and stat records
- Converts Timestamps (eg. unix nano time) into RFC3339 (parseable by excel, human readable) format
- Fast, even for large corp inventory (in-memory, parallel processing)
# SCREENSHOT CLI

# ⚡️QUICK START
```
go run paepcke.de/uniex/cmd/uniex@main
```
# ⚡️PRETTY PRINT CSV OUTPUT VIA [BAT](https://github.com/sharkdp/bat)
```
go run paepcke.de/uniex/cmd/uniex@main | bat -l csv
```
# ⚡️PRETTY PRINT JSON OUTPUT VIA [JQ](https://github.com/jqlang/jq)
```
UNIEX_FORMAT=json go run paepcke.de/uniex/cmd/uniex@main | jq
```
# ⚡️HOW TO INSTALL
```
go install paepcke.de/uniex/cmd/uniex@main
```
# ⚡️PRE-BUILD BINARIES (DOWNLOAD)
[https://github.com/paepckehh/uniex/releases](https://github.com/paepckehh/uniex/releases)
# SUPPORTED OPTIONS
```
# Optional (via env variables)
- UNIEX_MONGODB - mongodb uri, default: mongodb://127.0.0.1:27117
- UNIEX_FORMAT - export format, default: csv [csv|json]
```
# DOCS
[pkg.go.dev/paepcke.de/uniex](https://pkg.go.dev/paepcke.de/uniex)
# 🛡 License
[](https://github.com/paepckehh/uniex/blob/master/LICENSE)
This project is licensed under the terms of the `BSD 3-Clause License` license. See [LICENSE](https://github.com/paepckehh/uniex/blob/master/LICENSE) for more details.
# 📃 Citation
```bibtex
@misc{uniex,
author = {Michael Paepcke},
title = {Export UNIFI MongoDB Inventory Database},
year = {2024},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://paepcke.de/uniex}}
}
```
# CONTRIBUTION
Yes, Please! PRs Welcome!