Skip to content
Last updated

Confirming Data Upload

You can add logs in JSON format using HTTP.

$ curl -X POST -d 'json={"action":"login","user":2}' \
http://localhost:8888/td.testdb.www_access  

td-agent continuously uploads logs every 5 minutes. You can force td-agent to flush the buffered logs into the cloud by sending a SIGUSR1 signal.

# Linux
$ kill -USR1 `cat /var/run/td-agent/td-agent.pid`
    
# MacOS X
$ sudo kill -USR1 `sudo launchctl list | grep td-agent | cut -f 1`  

Go to TD Console > Databases to check if the data got imported successfully. Or from the CLI, you can check by issuing the td tables command:

$ td tables
+------------+------------+------+-----------+
| Database   | Table      | Type | Count     |
+------------+------------+------+-----------+
| testdb     | www_access | log  | 1         |
+------------+------------+------+-----------+  

If you run into any issues, the td-agent log (/var/log/td-agent/td-agent.log) is a good place to start your investigation.