As a continuation of the article
HERE- some more screenshots from the ready to use template....
For the
Elasticsearch/Logstash/Kibana users there is a ready to use template that you could download from here - "
HTTP-Extended-Custom"
https://github.com/pevma/Suricata-Logstash-Templates
Dear all
ReplyDeleteI have a question,i want to POST data output to eve.log file,but i didn't find where can configure the police, can you help me? thx
I am not sure I understand your question?
ReplyDeleteexample post request:
ReplyDeletePOST / HTTP/1.1
Host: www.xx.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6)
Gecko/20050225 Firefox/1.0.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 40
Connection: Keep-Alive
name=Professional%20Ajax&publisher=Wiley
i mean is that store the data "name=Professional%20Ajax&publisher=Wiley" in eve.log file with json type
again - not clearly understanding what is your question. Maybe you could do a quick "grep" and see an example output or just click on a http record in the Kibana dashboard and see all the fields available and their data.
ReplyDeleteoh..no...I can't describe more clearly, if you have a post request, the post data now can't see in the eve.log(example"name=Professional%20Ajax&publisher=Wiley",this post data ), my question is how to do about that ,then i can see the post data in eve.log ?if you again again not clearly,i want say "Thank you very much!"
DeleteYou want to write POST data to eve.log, correct?
DeleteYes , you are correct!!
DeleteIt is a standard JSON format so this is depending on the script/transport that you would want to use.What kind of script/language are you using Java/Python/Perl.... ?
ReplyDeleteJava or Python is ok
DeleteI think those three would be a good start for Python/JSON and would give you an idea:
ReplyDeletehttps://simplejson.readthedocs.org/en/latest/
https://docs.python.org/2/library/json.html
http://pymotw.com/2/json/
Dear Peter
ReplyDeleteI know that web sites,but i mean is not that; i mean is through suricata get post data and save post data to eve.log, can you clearly understanding ?
Ok. Then I would suggest asking that question on our OISF mailing list. I am sure you will get a lot more help there from a that point of view.
ReplyDeletehttps://lists.openinfosecfoundation.org/mailman/listinfo