> Can anyone tell me how to load data to Influxdb from file.?

We have a section in the docs that explains how to do so with curl [1]. You
can also use `influx -import` [2].

> localhost:8086 url is not working

The log output says influx is listening on port 8086:

> Listening on HTTP: [::]:8086

It's probably a firewall configuration that is not allowing you to connect
to that port.

> [cacheloader] 2017/01/06 07:00:01 reading file \var\lib\influxdb\wal\_
internal\monitor\1\_00001.wal, size 387280

You're seeing these strange lines because you haven't set the
"data.wal-dir" config option. You've overridden "data.dir" and "meta.dir"
correctly to be proper Windows paths, but "data.wal-dir" should change too.

[1]
https://docs.influxdata.com/influxdb/v1.1/guides/writing_data/#writing-points-from-a-file
[2]
https://docs.influxdata.com/influxdb/v1.1/tools/shell/#import-data-from-a-file-with-import

On Thu, Jan 5, 2017 at 5:47 PM, P Pal <[email protected]> wrote:

> I am very new to influx DB.
> I am using the windows version 1.1.1.Attached my config file.
>
>
> Can anyone tell me how to load data to Influxdb from file.?
>
> file content:
> treasures,captain_id=dread_pirate_roberts value=801 1439856000
> treasures,captain_id=flint value=29 1439856000
> treasures,captain_id=sparrow value=38 1439856000
> treasures,captain_id=tetra value=47 1439856000
> treasures,captain_id=crunch value=109 1439858880
>
>
> 2) also localhost:8086 url is not working
>
> Output of the config given.
>
>
> D:\Prev_Machine\Pranab\Daimler\Xtech\software\
> influxdb-1.1.1_windows_amd64\influ
> xdb-1.1.1-1>influxd -config influxdb.conf
>
>  8888888           .d888 888                   8888888b.  888888b.
>    888            d88P"  888                   888  "Y88b 888  "88b
>    888            888    888                   888    888 888  .88P
>    888   88888b.  888888 888 888  888 888  888 888    888 8888888K.
>    888   888 "88b 888    888 888  888  Y8bd8P' 888    888 888  "Y88b
>    888   888  888 888    888 888  888   X88K   888    888 888    888
>    888   888  888 888    888 Y88b 888 .d8""8b. 888  .d88P 888   d88P
>  8888888 888  888 888    888  "Y88888 888  888 8888888P"  8888888P"
>
> [run] 2017/01/06 07:00:01 InfluxDB starting, version 1.1.1, branch master,
> commi
> t e47cf1f2e83a02443d7115c54f838be8ee959644
> [run] 2017/01/06 07:00:01 Go version go1.7.4, GOMAXPROCS set to 4
> [run] 2017/01/06 07:00:01 Using configuration at: influxdb.conf
> [store] 2017/01/06 07:00:01 Using data dir: D:\Prev_Machine\Pranab\
> Daimler\Xtech
> \software\influxdb-1.1.1_windows_amd64\influxdb-1.1.1-1
> [store] 2017/01/06 07:00:01 Skipping database dir: .gitconfig. Not a
> directory
> [store] 2017/01/06 07:00:01 Skipping database dir: .influx_history. Not a
> direct
> ory
> [store] 2017/01/06 07:00:01 Skipping database dir: datarrr.txt. Not a
> directory
> [store] 2017/01/06 07:00:01 Skipping database dir: influx.exe. Not a
> directory
> [store] 2017/01/06 07:00:01 Skipping database dir: influx_inspect.exe. Not
> a dir
> ectory
> [store] 2017/01/06 07:00:01 Skipping database dir: influx_stress.exe. Not
> a dire
> ctory
> [store] 2017/01/06 07:00:01 Skipping database dir: influx_tsm.exe. Not a
> directo
> ry
> [store] 2017/01/06 07:00:01 Skipping database dir: influxd.exe. Not a
> directory
> [store] 2017/01/06 07:00:01 Skipping database dir: influxdb.conf. Not a
> director
> y
> [store] 2017/01/06 07:00:01 Skipping database dir: influxdb_bkp.conf. Not
> a dire
> ctory
> [store] 2017/01/06 07:00:01 Skipping database dir: meta.db. Not a directory
> [cacheloader] 2017/01/06 07:00:01 reading file \var\lib\influxdb\wal\_
> internal\m
> onitor\1\_00001.wal, size 387280
> [cacheloader] 2017/01/06 07:00:01 reading file \var\lib\influxdb\wal\_
> internal\m
> onitor\2\_00001.wal, size 26816
> [cacheloader] 2017/01/06 07:00:01 reading file \var\lib\influxdb\wal\_
> internal\m
> onitor\2\_00003.wal, size 0
> [shard] 2017/01/06 07:00:01 D:\Prev_Machine\Pranab\
> Daimler\Xtech\software\influx
> db-1.1.1_windows_amd64\influxdb-1.1.1-1\_internal\monitor\2 database
> index loade
> d in 3.0002ms
> [store] 2017/01/06 07:00:01 D:\Prev_Machine\Pranab\
> Daimler\Xtech\software\influx
> db-1.1.1_windows_amd64\influxdb-1.1.1-1\_internal\monitor\2 opened in
> 25.0015ms
> [cacheloader] 2017/01/06 07:00:01 reading file \var\lib\influxdb\wal\_
> internal\m
> onitor\1\_00002.wal, size 2781197
> [cacheloader] 2017/01/06 07:00:02 reading file \var\lib\influxdb\wal\_
> internal\m
> onitor\1\_00003.wal, size 663847
> [cacheloader] 2017/01/06 07:00:02 reading file \var\lib\influxdb\wal\_
> internal\m
> onitor\1\_00004.wal, size 427155
> [cacheloader] 2017/01/06 07:00:02 reading file \var\lib\influxdb\wal\_
> internal\m
> onitor\1\_00005.wal, size 111307
> [cacheloader] 2017/01/06 07:00:02 reading file \var\lib\influxdb\wal\_
> internal\m
> onitor\1\_00006.wal, size 287225
> [cacheloader] 2017/01/06 07:00:02 reading file \var\lib\influxdb\wal\_
> internal\m
> onitor\1\_00009.wal, size 0
> [shard] 2017/01/06 07:00:02 D:\Prev_Machine\Pranab\
> Daimler\Xtech\software\influx
> db-1.1.1_windows_amd64\influxdb-1.1.1-1\_internal\monitor\1 database
> index loade
> d in 1ms
> [store] 2017/01/06 07:00:02 D:\Prev_Machine\Pranab\
> Daimler\Xtech\software\influx
> db-1.1.1_windows_amd64\influxdb-1.1.1-1\_internal\monitor\1 opened in
> 238.0136ms
>
> [subscriber] 2017/01/06 07:00:02 opened service
> [monitor] 2017/01/06 07:00:02 Starting monitor system
> [monitor] 2017/01/06 07:00:02 'build' registered for diagnostics monitoring
> [monitor] 2017/01/06 07:00:02 'runtime' registered for diagnostics
> monitoring
> [monitor] 2017/01/06 07:00:02 'network' registered for diagnostics
> monitoring
> [monitor] 2017/01/06 07:00:02 'system' registered for diagnostics
> monitoring
> [shard-precreation] 2017/01/06 07:00:02 Starting precreation service with
> check
> interval of 10m0s, advance period of 30m0s
> [snapshot] 2017/01/06 07:00:02 Starting snapshot service
> [continuous_querier] 2017/01/06 07:00:02 Starting continuous query service
> [monitor] 2017/01/06 07:00:02 Storing statistics in database '_internal'
> retenti
> on policy 'monitor', at interval 10s
> [httpd] 2017/01/06 07:00:02 Starting HTTP service
> [httpd] 2017/01/06 07:00:02 Authentication enabled: false
> [httpd] 2017/01/06 07:00:02 Listening on HTTP: [::]:8086
> [retention] 2017/01/06 07:00:02 Starting retention policy enforcement
> service wi
> th check interval of 30m0s
> [run] 2017/01/06 07:00:02 Listening for signals
> 2017/01/06 07:00:02 Sending usage statistics to usage.influxdata.com
> [run] 2017/01/06 07:00:52 Signal received, initializing clean shutdown...
> [run] 2017/01/06 07:00:52 Waiting for clean shutdown...
> [monitor] 2017/01/06 07:00:52 shutting down monitor system
> [snapshot] 2017/01/06 07:00:52 snapshot listener closed
> [monitor] 2017/01/06 07:00:52 terminating storage of statistics
> [shard-precreation] 2017/01/06 07:00:52 Precreation service terminating
> [continuous_querier] 2017/01/06 07:00:52 continuous query service
> terminating
> [retention] 2017/01/06 07:00:52 retention policy enforcement terminating
> [subscriber] 2017/01/06 07:00:54 closed service
> [run] 2017/01/06 07:00:54 server shutdown completed
>
>
>
>
> --
> Remember to include the version number!
> ---
> You received this message because you are subscribed to the Google Groups
> "InfluxData" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/influxdb.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/influxdb/5caa06c2-0387-4510-8641-84859978016c%40googlegroups.com
> <https://groups.google.com/d/msgid/influxdb/5caa06c2-0387-4510-8641-84859978016c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Remember to include the version number!
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/CALxJwdOmj_%2BrSyQVqde%3D6TWW51RpMt%3DLsyuD1NHcZU_EEunxpg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to