Hello, thanks for answering, you must excuse our English is very bad, we will try to explain ourselves as best as possible.
We are very new to ELK, and we are just starting, we have successfully installed Kibana on a server, elasticsearch and Logstar, and finally Filebeat ...
We have achieved that everything that works well from 3 different machines generates logs and we have managed to update them successfully in the Kibana viewer, until here we came well.
The problem we have is the following, in our logs that we see in Kibana for example this:
11th March 2019, 09:30:25.742 @timestamp: 11th March 2019, 09:30:25.742
log.file.path: C:\Program Files\Filebeat\envios\setupact.log
host: { "name": "toni-PC" }
message: AudMig: No audio endpoint migration settings found 0x2
error.message: Error decoding JSON: invalid character 'A' looking for beginning of value
error.type: json
_id: S7bfa2kBuioSuSzqsVMT
_type: doc
_index: filebeat-2019.03.11
_score: -
We have 2 problems, the first one is that the date and time that appears in @timestamp is not the correct date and time of the log generation, but it is the DATE that filebeat sent, in this case for example this log was Friday and when we turned on the server today and lit the terminals it sent us if the log but it appears the date of SEND not the date and generation of the log that we need it.
The problem 2 is that in the field "_index: filebeat-2019.03.11" always appears by default in the name of the "filebeat" log and to be able to make a classification of which program that computer generated the log we can not, in this field we would need to get the path of the program that generated the log, for example / Windows / log / etc / etc ... or failing any way that filebeat will generate the route automatically every time it generates the log BEFORE sending it ...
Our "filebeat.yml" configuration is as follows:
##################### Filebeat #####################################
filebeat:
prospectors:
-
paths:
- 'C:\Program Files\filebeat-ELK Local\envios*.log'
fields:
#logzio_codec: json
#token: yFImINDrvEpwKhCcNtBjCNhscvYCMAVD
type: log
fields_under_root: true
json.keys_under_root: true
json.add_error_key: true
encoding: utf-8
#ignore_older: 3h
registry_file: 'C:\Program Files\filebeat-ELK Local\registry'
################### Output ##########################################
output:
logstash:
hosts: ["192.168.0.211:5044"]
As you can see everything very basic we have so far, our main task now that before starting to deepen more we need to correct the 2 problems that we discussed before if it is possible, and if not, another alternative could be put into practice.
Please remember to be patient and very schematic with your explanation we are very new to ELK just a week ago we are starting with it.
Thank you.