- Load CSV data
- Apply some filters
- Changing index name besed on value
Clone this Gist on your host.
git clone https://gist.github.com/db7636ef860b3be7da4fc0ed7b2d1fe6.git logstash-demo
Install Logstash. The official doc has more installation options.
Installation via curl is convenient for testing purpose:
curl -OL https://artifacts.elastic.co/downloads/logstash/logstash-8.1.0-linux-x86_64.tar.gz
tar xvf logstash-8.1.0-linux-x86_64.tar.gz
Configure logstash.conf:
- Update the CSV file path
- Update Elasicsearch connection
Then, execute logstash:
{logstash-installation-full-path}/bin/logstash -f {logstash-demo-full-path}/logstash.conf
Multiple indices will be populated if it runs successfully: ls-demo-a, ls-demo-b ... etc