Question: I've tried searching for hostnames in kibana using part of the server name:

```
B-wit-a2pgw-*

```

Also I tried:

```
hostname: B-wit-a2pgw-*

```

And:

```
instance: B-wit-a2pgw-*

```

I have the time frame set to today. But nothing turns up in the kibana console. What am I doing wrong?

Answer: 
Spring `@RequestMapping` supports array of path Strings. So, it can be achieved like -

```
@RequestMapping(
        path = {
                "/dashboards/views/{space}/{id}/{filter}", //with filter
                "/dashboards/views/{space}/{id}".  //without filter
        }
)

```

Additionally, mark the filter object as `@Nullable`

```
@PathVariable @Nullable String filter

```
Generally, filter data mapped as query parameter rather path variable. You can use an optional query parameter using `@RequestParam` for this case

```
@GetMapping("/dashboards/views/")
public String getFoos(@RequestParam(required = false) String filter) {
      ...
}

```

And then you can send/skip data

```
/dashboards/views?filter="data"
/dashboards/views

```

A good article about @RequestParam [here](https://www.baeldung.com/spring-request-param)