how to filter kibana for last 24 hours

#this is what you will face when you using kibana, you want to filter kibana for only show latest data 24hour in your panel.

once you installed kibana and make’s your data live here’s the step to make your panel 24 hours from now

1. open your kibana url something like

http://kibana.awan.google.com/#/dashboard

2. put a sample filter in your kibana dashboard

3. save your dasboard

4. export your dashboard as json file, it will download file json into your PC

5. edit your json file (the one that you download already), there is should be something like this if you already have sample filter in step 2


"filter": {
"idQueue": [
1,
2
],
"list": {
"0": {
"type": "time",
"from": "now-24h",
"to": "now",
"field": "@timestamp",
"mandate": "must",
"active": true,
"alias": "",
"id": 0
}
},
"ids": [
0
]
}
},

6. make sure your filter have this and save it as “something dashboard”

7. click load and pick your “something dashboard”

your filter panel should show last 24 hour from now in real time mode. congratulation

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s