DedSec
(DedSec)
November 20, 2020, 6:06pm
1
Hello, I have a logstash file and when I am running the command sudo logstash -f bug.conf logstash starts but there is no data in ELK
This is my bug.conf file:
input {
file {
path => "/Users/siddharth/Desktop/program-list.json"
type => "json"
start_position =>" beginning"
}
}
filter {
json {
source => "message"
}
}
output {
elasticsearch {
hosts => "http://localhost:9200 "
index => "bounty-programs-testing"
}
stdout {}
}
Can you check what is wrong here ?
Badger
November 20, 2020, 6:08pm
2
What is in the logstash logs? Does logstash produce an event on stdout?
DedSec
(DedSec)
November 20, 2020, 6:09pm
3
Its a json file which have some multiple data like this:
{
"program_name": "(ISC)2",
"policy_url": "https://bugcrowd.com/isc2 ",
"contact_url": "https://bugcrowd.com/isc2/report ",
"launch_date": "",
"offers_bounty": "no",
"offers_swag": false,
"hall_of_fame": "",
"safe_harbor": "partial",
"public_disclosure": "",
"pgp_key": "",
"hiring": "",
"securitytxt_url": "",
"preferred_languages": ""
},
Badger
November 20, 2020, 6:28pm
4
That does answer either of the questions that I asked.
DedSec
(DedSec)
November 20, 2020, 6:32pm
5
Can you be more clear then ? I am new to all this so if possible can you ask it in easy language ?
Badger
November 20, 2020, 6:50pm
6
What is printed to stdout when you run sudo logstash -f bug.conf
?
system
(system)
Closed
December 18, 2020, 6:50pm
7
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.