Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do we re-insert data into Influx? #1

Open
aschaible opened this issue Feb 26, 2019 · 4 comments
Open

How do we re-insert data into Influx? #1

aschaible opened this issue Feb 26, 2019 · 4 comments

Comments

@aschaible
Copy link

Hello,

Great utility and thanks for the contribution!

Can you provide steps to re-import the data back to Influx?

Also, my use case is to convert a tag to a field - it looks like a fairly straight-forward modification to the script. Would you agree?

Thanks in advance!

@mvadu
Copy link
Contributor

mvadu commented Feb 26, 2019

I usually use shameless plug Influxer which allows your use case, in the Influxer, please run with -timeformat -input <file name> /export /autolayout and redirect to a json file, and modify the file to suite your field and tag setup. Please give it a shot.

@aschaible
Copy link
Author

Wow you rock man, thanks. I will give it a shot!

@anethema
Copy link

anethema commented Apr 25, 2020

I'm a little unsure of how you are using that app.

C:\Users\jdero\Desktop\influxer>Influxer.exe -timeformat -input c:\users\jdero\InfluxDump.csv /export /autolayout
Error processing arguments FormatException: Couldn't parse 2020-04-22-07.04.53.000000 using format true, check -timeformat argument

How do you specify the timeformat? They don't seem to have documentation on it.

Then I can't even tell, will that utility actually upload it back into your database?

Like what specific command would you actually run on one of your generated CSV files?

EDIT: I'm actually talking about getting data from your ExtractTransformInflux.ps1 back into my database. I'm just trying to change every instance of a certain tag to another tag.

@mvadu
Copy link
Contributor

mvadu commented Apr 25, 2020

I updated the readme to show the exact commands. influxer.exe -format Generic -input InfluxDump.csv -TimeFormat "yyyy-MM-dd-hh.mm.ss.ffffff" -Precision Microseconds -splitter "," /export /autolayout > influxer.config

Also look at the Influxer's read me, it has ton of command line parameters to allow you to control the DB, retention policy and measurement where the data should be inserted back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants