Analytics Methodology (Using Elasticsearch and Kibana)
Export your analytics data
1) Export your analytics data in a raw format such as JSON.
Copyright By PowCoder代写 加微信 powcoder
1) Set up Elasticsearch and Kibana
a) Introduction
“The Elasticsearch Stack – That’s Elasticsearch, Kibana, Beats, and Logstash (also known as the ELK Stack). Reliably and securely take data from any source, in any format, then search, analyze, and visualize it in real time.”
b) Tools to use
Since we do not deal with live data, we only need the basic Elasticsearch (backend) and Kibana (frontend UI), once that is set up, we can then import the raw JSON data from the first step. By default, the products come with free a 30-day trial license, so once the license expires certain features will not be available again. However the free version is sufficient for this project.
c) Setup Elasticsearch
Elasticsearch is the backend where data is processed, indexed, stored and ready to be searched. Official guide: https://www.elastic.co/guide/en/elasticsearch/reference/current/setup.html
Elasticsearch could use a lot of your system memory, but 1 or 2 GB is sufficient for the project. See details about heap size and how to change it, https://medium.com/trendyol-tech/how-to-configure-elasticsearch-heap-size-to-change-max-memory-size-cb9ca016ce06
d) Setup Kibana
Kibana is the frontend UI where user can visualize, search and export the data stored in the elasticsearch.
Official guide: https://www.elastic.co/guide/en/kibana/current/setup.html
2) Import Data into Elasticsearch
a) Launch Kibana and Login
During the setup from step 2, you will set up your admin user credentials. Log in with the credentials.
b) Click the Menu icon to open up the menu, scroll all the way to the bottom, and go to Dev Tools interface
c) Create a custom template for analytics data. Because the default value type for all the exported analytics data is string, this step is required if you want to analyze numeric values.
· In my case, the name of the template is “game_data”, this is just to remind you the name of the template.
· The “index_patterns” is “game*”, which means the template will apply to all the index with “game” prefix.
· Under the “properties” change the custom field names to match your own custom fields. For numeric values, their data type should be “long”
d) Import data, again bring up the menu and click add integration
Search for “upload” and click “Upload a file”
e) Upload your analytics JSON data. The index name should match your “index_pattern” prefix in your template.
a) Elasticsearch will auto detect the data format.
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com