An example to create scripts in kibana 4

Hello,
Can you give an example to create scripts and plant them within the Elasticsearch server. Once the scripts are planted, t how can i view in real time as if they were data arriving directly from the logs.

. For example, if a user is interested in creating a graphic display that exhibits events based on the time of day they occurred, the user can write a relevant script using Kibana 4’s interface, then plant it into the Elasticsearch server. The script that is planted will run continuously, allowing the user to view the results on the dashboard.

So can you give an idea or an example ?

I am looking forward.
Best Regards.

It's a little unclear what you want here.

Doing this with scripting is currently not possible with KB4.
However you can build a visualisation/dashboard that will show this sort of thing.