Luv  
                
                  
                    May 3, 2017, 11:49am
                   
                  1 
               
             
            
              How can I send data from telegraf on my system to influxdb on another system ?
I know I have to give telegraf the address of influxdb ,
[outputs.influxdb]
  urls = ["http://localhost:8086"]
But influxdb is running on the local port on another system. We have to make it publically accessible. How can we do that ?
I did this in my influxdb.conf file,
[http]
    bind-address = "0.0.0.0:8086"
But that did not wwork.
             
            
              
            
           
          
            
            
              @Luv  is the port 8086 open on your InfluxDB instance? Assuming that it is
[outputs.influxdb]
  urls = ["http://<your instances IP>:8086"]
should work.
             
            
              
            
           
          
            
              
                Luv  
              
                  
                    May 3, 2017,  9:00pm
                   
                  3 
               
             
            
              @michael 
abc@xyz:~$ sudo netstat -ntlp | grep influx
tcp6       0      0 :::8086                 :::*                    LISTEN      5473/influxd    
tcp6       0      0 :::8088                 :::*                    LISTEN      5473/influxd    
It is running on my instance.
The IP which I use to connect to my server is 35.185.176.233.
So, when I write something like this,
[[outputs.influxdb]]
  urls = ["http://35.185.176.233:8086"] # required
  database = "telegraf" # required
The logs says,
2017-05-03T20:55:02Z E! Database creation failed: Post http://35.185.176.233:8086/query?db=&q=CREATE+DATABASE+%22telegraf%22: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Why is this happening ?
Can you refer me some kind of docs for my scenario ?
             
            
              
            
           
          
            
              
                Luv  
              
                  
                    May 4, 2017,  7:51am
                   
                  4 
               
             
            
              Yeah I got it.
There were some issues with Firewall. I changed them after wasting a lot of time, and is now working.