# About ELK STack

**URL:** <https://discuss.elastic.co/t/about-elk-stack/333296>\
**Category:** Logstash\
**Created:** [May 12, 2023, 11:43am UTC](https://discuss.elastic.co/t/about-elk-stack/333296 "2023-05-12T11:43:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anil\_Sai\_Pinnelli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anil_sai_pinnelli/32/120916_2.png) [@Anil\_Sai\_Pinnelli](https://discuss.elastic.co/u/Anil_Sai_Pinnelli)\
**Post date:** [May 12, 2023, 11:43am UTC](https://discuss.elastic.co/t/about-elk-stack/333296/1 "2023-05-12T11:43:41Z")

</div>

Commands to link Mysql DB to elasticsearch using logstash.  
I am having one configuration file but, it did'nt worked for me!!  
input {  
jdbc {  
jdbc\_driver\_library =\> "/root/mysql-connector-java-5.1.30-bin.jar"  
jdbc\_driver\_class =\> "com.mysql.jdbc.Driver"  
jdbc\_connection\_string =\> "jdbc:mysql://$localhost:3306/jobschema"  
jdbc\_user =\> "root"  
jdbc\_password =\> "Mysql@123"  
tracking\_column =\> "timestamp"  
use\_column\_value =\> true  
statement =\> "select jobid, jobname, executiontime, jobstatus from logplugin where jobid \> :sql\_last\_value;"  
schedule =\> "\*/2 \* \* \* \*"  
}  
}

filter {  
date {  
match =\> ["timestamp", "UNIX"]  
target =\> "@timestamp"  
}

translate {  
field =\> "agent"  
destination =\> "branch"  
dictionary\_path =\> "/opt/agents.yaml"  
}  
}

output {  
elasticsearch {  
hosts =\> ["${ELASTIC\_HOSTS}:9200"]  
index =\> "logstashmysql"  
}

stdout {  
codec =\> rubydebug  
}  
}

Pls Solve this problem.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 12, 2023, 3:54pm UTC](https://discuss.elastic.co/t/about-elk-stack/333296/2 "2023-05-12T15:54:55Z")

</div>

> [@Anil\_Sai\_Pinnelli](#):
>
> it did'nt worked for me!!

What does that mean?

Also, please edit your post, select the configuration, and click on \</\> in the toolbar above the text box.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 9, 2023, 3:55pm UTC](https://discuss.elastic.co/t/about-elk-stack/333296/3 "2023-06-09T15:55:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
