https://github.com/ymyzk/bq-globalip
Record the current global IPv4 address to a BigQuery table.
https://github.com/ymyzk/bq-globalip
bigquery golang
Last synced: 2 months ago
JSON representation
Record the current global IPv4 address to a BigQuery table.
- Host: GitHub
- URL: https://github.com/ymyzk/bq-globalip
- Owner: ymyzk
- License: mit
- Created: 2020-05-03T05:34:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-03T09:07:25.000Z (about 6 years ago)
- Last Synced: 2025-03-23T17:29:13.842Z (about 1 year ago)
- Topics: bigquery, golang
- Language: Go
- Homepage: https://hub.docker.com/repository/docker/ymyzk/bq-globalip
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bq-globalip
Record the current global IPv4 address to a BigQuery table.
## Preparation
Create a BigQuery table with the following schema:
```json
[
{
"name": "time",
"type": "TIMESTAMP",
"mode": "REQUIRED"
},
{
"name": "address",
"type": "STRING",
"mode": "REQUIRED"
}
]
```
## Usage
```shell
$ export GOOGLE_APPLICATION_CREDENTIALS=.json
$ bq-globalip -bigquery :.
```
If you want to periodically record an address, please run `bq-globalip` with cron or a scheduler you prefer.