Define precision in environment


Dear All,

So that I don’t need to type it every time i issue command influx - I wish precision is stored in the linux environment.

Is that possible please?

Thanks a lot in advance


I think you can set the time precision when you create a database, but I don’t think there’s a way to set the precision in the environment.

You can set the precision for a specific database using the “precision” parameter (documented for the api here) so that you don’t have to set each write.


Might be helpful to create a bash alias in your .bash_profile:

alias influx='influx -precision rfc3339'
1 Like

thanks a lot. shall try this