{"id":18027767,"url":"https://github.com/sj14/lineprotocol","last_synced_at":"2025-04-04T20:19:21.326Z","repository":{"id":87637912,"uuid":"102354621","full_name":"sj14/lineprotocol","owner":"sj14","description":"Convert CSV files to InfluxDB and Kapacitor readable files","archived":false,"fork":false,"pushed_at":"2017-09-04T11:48:28.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T04:50:30.586Z","etag":null,"topics":["csv","influxdb","kapacitor"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sj14.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-04T11:33:27.000Z","updated_at":"2017-12-17T18:21:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5ade2a0-6192-433b-8820-7a308a4df646","html_url":"https://github.com/sj14/lineprotocol","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj14%2Flineprotocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj14%2Flineprotocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj14%2Flineprotocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj14%2Flineprotocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sj14","download_url":"https://codeload.github.com/sj14/lineprotocol/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242687,"owners_count":20907135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","influxdb","kapacitor"],"created_at":"2024-10-30T08:12:29.298Z","updated_at":"2025-04-04T20:19:21.307Z","avatar_url":"https://github.com/sj14.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSV to Lineprotocol\n\nThis is a simple tool to convert CSV files to Lineprotocol files which are readable by InfluxDB or Kapacitor.\nThe CSV file to read should be formatted like:\n```\ntimestamp0,measurement0\ntimestamp1,measurement1\ntimestamp2,measurement2\n...\n```\n\nThe available flags are:\n```\n  -db string\n    \tdatabase name (only for replay file) (default \"mydb\")\n  -importFile\n    \tcreate an influx import file (.txt)\n  -input string\n    \tCSV file or directory to convert (default \"path/to/file.csv\")\n  -output string\n    \toutput directory (default \"converted/\")\n  -replay\n    \tcreate a replay file (.srpl)\n  -rp string\n    \tdatabase retention policy (only for replay file) (default \"autogen\")\n  -table string\n    \ttable name (default \"table_test\")\n  -time\n    \tAdd a fake timestamp to the data\n```\nThe converted `.txt` file can be imported by InfluxDB with `influx -import -path=FILENAME.txt` and `.srpl` replay files can be imported by Kapacitor (have to be moved to Kapacitors recordings directory)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsj14%2Flineprotocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsj14%2Flineprotocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsj14%2Flineprotocol/lists"}