Hi
As I'm new to Logstash I just wanted to ask you some filter questions, probably you guys will be able to help me on this and get me starting...
These are the logs I'm sending to Logstash (example):
"message" => "[12/12/16 4:13:19:608 CET] 0000003c LdapRegistryI A SECJ0419I: The user registry is currently connected to the LDAP server ldap://tam-uat.bc:389.",
"@version" => "1",
"@timestamp" => "2016-12-12T07:54:04.154Z",
"type" => "log",
"input_type" => "log",
"fields" => nil,
"offset" => 13542,
"count" => 1,
"beat" => {
"hostname" => "el2081.bc",
"name" => "el2081.bc"
},
"source" => "/opt/websphere/logs/poma1/pom_bpel_c1_n1_m1/SystemOut.log",
"host" => "el2081.bc",
"tags" => [
[0] "beats_input_codec_plain_applied"
]
}
{
"message" => "[12/12/16 6:03:28:922 CET] 0000003c LdapRegistryI A SECJ0419I: The user registry is currently connected to the LDAP server ldap://tam-uat.bc:389.",
"@version" => "1",
"@timestamp" => "2016-12-12T07:54:04.154Z",
"offset" => 13690,
"type" => "log",
"input_type" => "log",
"count" => 1,
"fields" => nil,
"beat" => {
"hostname" => "el2081.bc",
"name" => "el2081.bc"
},
"source" => "/opt/websphere/logs/poma1/pom_bpel_c1_n1_m1/SystemOut.log",
"host" => "el2081.bc",
"tags" => [
[0] "beats_input_codec_plain_applied"
]
}
{
"message" => "[12/12/16 7:53:15:398 CET] 0000003c LdapRegistryI A SECJ0419I: The user registry is currently connected to the LDAP server ldap://tam-uat.bc:389.",
"@version" => "1",
"@timestamp" => "2016-12-12T07:54:04.154Z",
"beat" => {
"hostname" => "el2081.bc",
"name" => "el2081.bc"
},
"offset" => 13838,
"type" => "log",
"input_type" => "log",
"fields" => nil,
"source" => "/opt/websphere/logs/poma1/pom_bpel_c1_n1_m1/SystemOut.log",
"count" => 1,
"host" => "el2081.bc",
"tags" => [
[0] "beats_input_codec_plain_applied"
Now, how do I make my filter to show only the host, message and timestamp? Can somebody help me out please?
Kind regards
Johnny