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
output_mysql not sending data #309
Comments
The server IP in the sensor table is correct behaviour. Do you get errors in cowrie.log? |
Try to use output_mysql instead of database_mysql. |
If I use output_mysql, it will be nothing in mysql, there was no errors in cowrie.log either... |
Same here! output_mysql database_mysql CentOS Linux release 7.2.1511 |
@erdoking Sorry... Could you please describe more detail? How should I configure in cowrie.cfg?... |
@jaycecao: i think we have the same problem! logging to mysql don't work for me too ... (my config looks like your one !) @micheloosterhof: I started some test's... your commits: 45022b7 ["add service_identity to debian package based install"] -> SQL-Logging works fine with you can try with: The problem seems to come with 414569c ... |
@erdoking So did you solve the problem? Or not?... |
i didn't solve it ... You can checkout commit 45022b7, this seems to work! |
@erdoking @micheloosterhof Yes! It works on commit |
Confirmed working on my end. |
Confirmed working on my end. |
I have the same problem. I have tried all the solutions you provide and nothing work for me. I have uncommented [Output_mysql] and set up all the parameters, even uncommented "debug" that showed me an error when I ran cowrie. The error said something about the function "getbool" that it doesn't find. So I looked for it and changed it for "getboolean" in mysql.py. It worked and cowrie ran without errors but still not having mysql records. I realized that if I changed [Output_mysql] for [Database_mysql] cowrie write records on session table and sensor but that was all. I have no errors log. |
@antonio-ossan Try use |
@jaycecao I have already installed python-service-identity since I did the installation following recent instruction and no records were writen in the database. Changing "output" to "database" is the only way to some records written in the database. |
I think the conclusion is there are some bugs in output_mysql, because it doesn't seem to write data. |
There's some issue with the log entries not showing up since I've moved the output module loading. |
That seems odd but if I run cowrie with |
I have the same problem: output_mysql input: database_mysql input: output_mysql with DEBUG
database_mysql with DEBUG
|
So, the issue has been open for more than 3 months, but I don't see any progress being made. Is anyone looking at this? The mysql output is very important to me. |
I'm also interested in the progress of this issue, could we get a status update? Has anyone else found a workaround other than the limited functionality of using the [database_mysql] modification in the cowrie.cfg file? Since this change only populates 3 of the tables (sessions, sensors & downloads) it's not really usable. |
I have the same result as @antonio-ossan |
Somebody working on this? How do we get all the data into MySQL? |
So what should i clone, the master branch? The output-mysql branch? There is no documentation at all about why Michel's branch was cloned, when has changed, etc. |
It took a while, but I think I've fixed the main bug now that stopped the SQL statements. |
In the database, only table
sessions' has many data, the other tables such as
auth,
clients,
input,
ttyloghave no data. And
log/cowrie.logand
log/cowrie.jsonhave become binary files... What's the matter?... Here are the screenshots: ![zj1 qzbl r0g 4lj a qb](https://cloud.githubusercontent.com/assets/17915615/19677173/9e3e8ea6-9aca-11e6-9c18-53d88e7605e2.png) ![ut1 5_7k 7qrggv4b7pdith](https://cloud.githubusercontent.com/assets/17915615/19677209/c6d128e2-9aca-11e6-9e2e-e5f2b20fadf8.png) ![9tl8 i r pn80bh 1j olr](https://cloud.githubusercontent.com/assets/17915615/19677228/dbc4b962-9aca-11e6-8fec-573ca4a6df38.png) ![ceppb dwca w r4 if 4 d](https://cloud.githubusercontent.com/assets/17915615/19677240/eec24a34-9aca-11e6-9c1f-5eba6fedd259.png) ![cllo45bi hr n14ysdsw_vi](https://cloud.githubusercontent.com/assets/17915615/19677266/0d140bda-9acb-11e6-8503-ebc1fc94d3a2.png) ![gsz g 6 04mj5vp0u n](https://cloud.githubusercontent.com/assets/17915615/19677314/4be3439e-9acb-11e6-8c03-d4bd6132f799.png) In table
sensors`, the ip is my server ip...The text was updated successfully, but these errors were encountered: