Elastic search show only suricata and p0f data. #808
Replies: 1 comment
|
@TanveerAhmad2017 Since you're on T-Pot 20.06.2, the Logstash pipeline is already configured to ingest many honeypot logs, including Cowrie, Dionaea, Conpot, Heralding, etc. For example, the default pipeline contains inputs such as: file {
path => ["/data/cowrie/log/cowrie.json"]
codec => json
type => "Cowrie"
}along with inputs for the other bundled honeypots. :contentReference[oaicite:0]{index=0} So, in a default installation, you should not need to manually add Cowrie or the other honeypot inputs. A few things I'd check: 1. Verify Logstash is processing the eventsCheck the Logstash logs for parsing or indexing errors: docker logs logstashIn particular, look for:
2. Confirm the indices actually existRun: curl http://localhost:9200/_cat/indices?vor from Kibana Dev Tools: GET _cat/indices?vIf the documents are indexed but Kibana doesn't display them, it may be a data view/index pattern issue rather than an ingestion problem. 3. Verify the Cowrie log is receiving new eventsFor example: tail -f /data/cowrie/log/cowrie.jsonIf new JSON events appear but Logstash never indexes them, the issue is within the Logstash pipeline. 4. Remember how the
|
Uh oh!
There was an error while loading. Please reload this page.
Hi there
I have 20.6.2 Tpot version installed in VM.8Gb RAM ,140SSD and 2 cores.
*Note: /data folder is not empty i.e every honeypot have their respective logs inside.
Basically what I want is the whole data present in the "/data" folder to seen by the Elastic search but the problem is that it only shows p0f and suricata data. I tried to look for the logstash.config and found the input and output sections which show which data to take as input and which as output(elasticsearch) but when we visit elastic search web interface why it does not show the logs or data of other folders lets say cowrie etc. Am I missing something or I have to do something to achieve the required behaviour.
Below code is not complete and just for reference
input {
Cowrie
file {
path => ["/data/cowrie/log/cowrie.json"]
codec => json
type => "Cowrie"
}
_output {
elasticsearch {
hosts => ["elasticsearch:9200"]
# With templates now being legacy and ILM in place we need to set the daily index with its template manually. Otherwise a new index might be created with differents settings configured through Kibana.
index => "logstash-%{+YYYY.MM.dd}"
template => "/etc/logstash/tpot_es_template.json"
document_type => "doc"
}_
All reactions