-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kibana 4.5.1 resets the default index #7575
Comments
@larsf I wasn't able to reproduce following those steps. Are there any other details you can provide? |
I am assuming you matched the buildNum to the kibana server you were running .. :-) So are you saying that after doing step 2 and you connected with a browser that kibana presented myIndex-* as the default pattern? Which browser did you use - my test case above was with chrome (osx version) |
Yup, the correct default index pattern was preserved. And I used the correct buildNum.
Same, Chrome on OSX. I also tried a few different scenarios, like creating the config object while Kibana is running vs shut down, or when a logstash index does/doesn't exist, but none of that seemed to make a difference. I'm particularly interested in tracking this down because I've seen it happen when switching between versions of Kibana, but I haven't been able to reproduce it. |
I was also able to reproduce it, while trying to find a workaround for #7675 In my logstash config I have:
Steps:
At this point Kibana gave me the following error:
I understood it's because Kibana expects
Kibana refresh
After Kibana refresh the |
@andre-pt When you updated the .kibana config manually, had you set up the
Kibana definitely should not error out if |
I am still seeing this with 4.5.4. I haven't seen the exception mentioned above yet, but every connection to kibana, removes the setting of defaultIndex and bumps the version |
As another datapoint, I did verify that if I set the default index via the kibana UI, the data contained in the .kibana/config/4.5.4 is identical to what I set it to via curl prior to kibana starting. So it is like kibana deciding that it didn't initialize the default index, resets what is in ES and prompts the user. I have tested this with both safari 10.0.1 and chrome 54.0.2840.71, and the behavior is the same |
Another datapoint is that, if I have set the default index via the kibana UI, and upgrade kibana (went from 4.5.1 to 4.5.4), it does not reset the defaultIndex. So somewhere it seems like kibana keeps additional state as to wether it assigned the defaultIndex or not (aside from the .kibana/config/4.5.x endpoint) |
Got it working by adding the index-pattern before assigning the default index. Found the solution here : http://stackoverflow.com/questions/36871862/programmatically-set-kibanas-default-index-pattern Also found that you have to make sure index name used is consistent - for example, this does not work: curl -XPUT http://:9200/.kibana/index-pattern/myIndex-* -d '{"title" : "MyIndex", "timeFieldName": "timestampFieldNameInYourInputData"}' curl -XPUT http://:9200/.kibana/config/4.5.0 -d '{"defaultIndex" : "MyIndex"}' Saw other had used a slightly different url for similar updates like this: curl -XPUT http://:9200/elasticsearch/.kibana/index-pattern/myIndex-* -d '{"title" : "myIndex-*", "timeFieldName": "timestampFieldNameInYourInputData"}' Not sure if that gets routed the same way |
Closing this due to inactivity. Please reopen if the issue is still relevant. |
`v93.3.0`⏩ `v93.4.0` --- ## [`v93.4.0`](https://github.com/elastic/eui/releases/v93.4.0) - Added the following properties to `EuiButtonGroup`'s `options` configs: `toolTipContent`, `toolTipProps`, and `title`. These new properties allow wrapping buttons in `EuiToolTips`, and additionally customizing or disabling the native browser `title` tooltip. ([#7461](elastic/eui#7461)) - Enhanced `EuiResizeObserver` and `useResizeObserver`'s performance to not trigger page reflows on resize event ([#7575](elastic/eui#7575)) - Updated `EuiSuperUpdateButton` to support custom button text via an optional `children` prop ([#7576](elastic/eui#7576)) **Bug fixes** - Fixed `EuiFlyout` to not repeatedly remove/add a body class on resize ([#7462](elastic/eui#7462)) - Fixed `EuiToast` title text to wrap instead of overflowing out of the container ([#7568](elastic/eui#7568)) - Fixed a visual bug with `EuiHeaderBreadcrumbs` with popovers ([#7580](elastic/eui#7580)) **Deprecations** - Deprecated `euiPalettePositive` and `euiPaletteNegative` in favour of a more culturally inclusive `euiPaletteGreen` and `euiPaletteRed` ([#7570](elastic/eui#7570)) - Deprecated all charts theme exports in favor of `@elastic/charts` exports: ([#7572](elastic/eui#7572)) - Deprecated `EUI_CHARTS_THEME_<DARK|LIGHT>` in favor of `<DARK|LIGHT>_THEME` from `@elastic/charts`. ([#7572](elastic/eui#7572)) - Deprecated `EUI_SPARKLINE_THEME_PARTIAL` in favor of `useSparklineOverrides` theme from the kibana `charts` plugin `theme` service. **Accessibility** - Updated `EuiModal` to set an `aria-modal` attribute and a default `dialog` role ([#7564](elastic/eui#7564)) - Updated `EuiConfirmModal` to set a default `alertdialog` role ([#7564](elastic/eui#7564)) - Fixed `EuiModal` and `EuiConfirmModal` to properly trap Safari+VoiceOver's virtual cursor ([#7564](elastic/eui#7564))
Kibana version: 4.5.1
OS version: RH 6/7, Ubuntu 12
Original install method (e.g. download page, yum, from source, etc.):
from source
Description of the problem including expected versus actual behavior:
If I use curl to change the default index pattern from logstash-* to myIndex-, that works file (see steps below). Retrieving the defaults afterwards verifies this. However as soon as you connect a browser to kibana, it bumps the version number, removes the default string, so it is back to showing logstash- as the default. This worked just fine in 4.4.1 :-)
Steps to reproduce:
" {"buildNum":XXXX, "defaultIndex":"myIndex-*"}"
curl -s -XGET 'perfnode128:9200/.kibana/config/4.5.1?v
retunrs
{"_index":".kibana","_type":"config","_id":"4.5.1","_version":1,"found":true,"_source":{"buildNum":XXXX, "defaultIndex":"myIndex-*"}}
{"_index":".kibana","_type":"config","_id":"4.5.1","_version":2,"found":true,"_source":{"buildNum":XXXX}}
Notice how the version is bumped to 2, and the "defaultIndex" is removed
The text was updated successfully, but these errors were encountered: