Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
SpecterHi
@SpecterHi
Hi, thank you for your tool, I just installed it and it seems ran well... but I wonder how I get the all the data after it shown "Fetching posts from the Facebook Page
Fetched 12 posts"?
SpecterHi
@SpecterHi
I never used Elasticsearch before, and I tried to search it but got nothing
curl -XGET 'http://localhost:9200/_count?pretty'
{
"count" : 0,
"_shards" : {
"total" : 0,
"successful" : 0,
"failed" : 0
}
}
Dwight Donovan Benvenuto
@0x46616c6b
hello
you must query the right index ;-)
curl -XGET 'http://localhost:9200/<your_index>/<your_type>/_count?pretty'
the index is the value from "fb_page_name"
and the available types are "comment", "post" and "like"
I use Kibana as Frontend to query and visualize the results
are you familiar with docker? then you can rapid start a kibana instance and connect kibana with elasticsearch
docker run --name kibana -e ELASTICSEARCH_URL=http://<elasticsearch_hostname>:9200 -p 5601:5601 -d kibana
SpecterHi
@SpecterHi
Hi, thank you!
I'll have a try. And thank you tell me the Kibana and docker solution.
SpecterHi
@SpecterHi
Hi, I've continued got this:

[Symfony\Component\Debug\Exception\ContextErrorException]
Notice: Undefined index: updated_time

after I ran the console:

php console fetch --limit="10" --since="2015-07-10"

then I tried:
curl -XGET 'http://localhost:9200/Google/post/_count?pretty'

it said:
{
"error" : "IndexMissingException[[Google] missing]",
"status" : 404
}

(I tried the google page)
SpecterHi
@SpecterHi
My OS is CentOS6,
elasticsearch is v1.7
SpecterHi
@SpecterHi
I did a bit search, and I think maybe I should just use LogStash?
But could you please tell me, did I got the posts data stored int the elasticsearch? Thank you!
Dwight Donovan Benvenuto
@0x46616c6b
Hello @SpecterHi, what is your fb_page_name? Google? Can you rerun the command with --debug or --verbose. It should return the stacktrace when a Exception is thrown.
Dwight Donovan Benvenuto
@0x46616c6b
If the cli command crashed, then it is possible that nothing stored in elasticsearch
Of course, all the data is stored in elasticsearch.