Skip to content
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

Journalbeat 7.0.0 setup dashboard #11751

Closed
hholst80 opened this issue Apr 10, 2019 · 6 comments · Fixed by #15802
Closed

Journalbeat 7.0.0 setup dashboard #11751

hholst80 opened this issue Apr 10, 2019 · 6 comments · Fixed by #15802

Comments

@hholst80
Copy link

hholst80 commented Apr 10, 2019

Elasticsearch & Kibana 7.0.0 deployment with Journalbeat.

version: '2.4'
volumes: { esdata: {}, kbdata: {} }
services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.0.0
    restart: unless-stopped
    environment:
      - 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
      - 'discovery.type=single-node'
    volumes:
      - 'esdata:/usr/share/elasticsearch/data'
    network_mode: host
    logging:
      driver: json-file
  kibana:
    image: docker.elastic.co/kibana/kibana:7.0.0
    restart: unless-stopped
    volumes:
      - 'kbdata:/usr/share/kibana/data'
    environment:
    - SERVER_NAME=puff
    - ELASTICSEARCH_HOSTS=http://localhost:9200/
    network_mode: host
    logging:
      driver: json-file
docker run --net="host" docker.elastic.co/beats/journalbeat:7.0.0 setup --dashboards

image

@maglo
Copy link

maglo commented Apr 29, 2019

the problem is with the references:

[
  {
    "id": "33c018b0-2876-11e9-bc7e-af96a8fe0ddd",
    "name": "kibanaSavedObjectMeta.searchSourceJSON.index",
    "type": "index-pattern"
  }
]

should be changed to (for all 3 searches)

[
  {
    "id": "journalbeat-*",
    "name": "kibanaSavedObjectMeta.searchSourceJSON.index",
    "type": "index-pattern"
  }
]

@hholst80
Copy link
Author

hholst80 commented Jul 5, 2019

This problem persists in 7.2.0

@SMAPPER
Copy link

SMAPPER commented Jul 7, 2019

Same thing here. Updating the id to reflect journalbeat-* would not fix the issue on 7.2.0 when I tried it. Any ideas on what needs changed to import the dashboard for version 7.2.0?

@mtibke
Copy link

mtibke commented Sep 15, 2019

Same problem here (Using journalbeat-7.3.1-1 on Linux Arch x86)

@alphaDev23
Copy link

Same problem on 7.4.2. Any update on this?

kvch added a commit that referenced this issue Jan 27, 2020
## What does this PR do?

This PR adds a new setting to Beat to indicate if it has a dashboard or not. If the Beat lacks dashboards, running `setup` does not attempt to load those.

## Why is it important?

Running the command `setup` fails if the Beat does not have dashboards in the appropriate folder.

## Checklist

<!-- Mandatory
Add a checklist of things that are required to be reviewed in order to have the PR approved

List here all the items you have verified BEFORE sending this PR. Please DO NOT remove any item, striking through those that do not apply. (Just in case, strikethrough uses two tildes. ~~Scratch this.~~)
-->

- [x] My code follows the style guidelines of this project
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] I have made the corresponding change to the default configuration files
- [x] I have added tests that prove my fix is effective or that my feature works

## How to test this PR locally

Both Journalbeat and Functionbeat are affected. So both Beats can/should be tested.

```sh
./functionbeat setup
```

## Related issues

Closes #13276
Closes #11751
kvch added a commit to kvch/beats that referenced this issue Jan 27, 2020
## What does this PR do?

This PR adds a new setting to Beat to indicate if it has a dashboard or not. If the Beat lacks dashboards, running `setup` does not attempt to load those.

## Why is it important?

Running the command `setup` fails if the Beat does not have dashboards in the appropriate folder.

## Checklist

<!-- Mandatory
Add a checklist of things that are required to be reviewed in order to have the PR approved

List here all the items you have verified BEFORE sending this PR. Please DO NOT remove any item, striking through those that do not apply. (Just in case, strikethrough uses two tildes. ~~Scratch this.~~)
-->

- [x] My code follows the style guidelines of this project
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] I have made the corresponding change to the default configuration files
- [x] I have added tests that prove my fix is effective or that my feature works

## How to test this PR locally

Both Journalbeat and Functionbeat are affected. So both Beats can/should be tested.

```sh
./functionbeat setup
```

## Related issues

Closes elastic#13276
Closes elastic#11751
(cherry picked from commit 8260623)
kvch added a commit that referenced this issue Jan 27, 2020
## What does this PR do?

This PR adds a new setting to Beat to indicate if it has a dashboard or not. If the Beat lacks dashboards, running `setup` does not attempt to load those.

## Why is it important?

Running the command `setup` fails if the Beat does not have dashboards in the appropriate folder.

## Checklist

<!-- Mandatory
Add a checklist of things that are required to be reviewed in order to have the PR approved

List here all the items you have verified BEFORE sending this PR. Please DO NOT remove any item, striking through those that do not apply. (Just in case, strikethrough uses two tildes. ~~Scratch this.~~)
-->

- [x] My code follows the style guidelines of this project
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] I have made the corresponding change to the default configuration files
- [x] I have added tests that prove my fix is effective or that my feature works

## How to test this PR locally

Both Journalbeat and Functionbeat are affected. So both Beats can/should be tested.

```sh
./functionbeat setup
```

## Related issues

Closes #13276
Closes #11751
(cherry picked from commit 8260623)
kvch added a commit to kvch/beats that referenced this issue Jan 28, 2020
## What does this PR do?

This PR adds a new setting to Beat to indicate if it has a dashboard or not. If the Beat lacks dashboards, running `setup` does not attempt to load those.

## Why is it important?

Running the command `setup` fails if the Beat does not have dashboards in the appropriate folder.

## Checklist

<!-- Mandatory
Add a checklist of things that are required to be reviewed in order to have the PR approved

List here all the items you have verified BEFORE sending this PR. Please DO NOT remove any item, striking through those that do not apply. (Just in case, strikethrough uses two tildes. ~~Scratch this.~~)
-->

- [x] My code follows the style guidelines of this project
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] I have made the corresponding change to the default configuration files
- [x] I have added tests that prove my fix is effective or that my feature works

## How to test this PR locally

Both Journalbeat and Functionbeat are affected. So both Beats can/should be tested.

```sh
./functionbeat setup
```

## Related issues

Closes elastic#13276
Closes elastic#11751
(cherry picked from commit 8260623)
kvch added a commit that referenced this issue Jan 28, 2020
…#15851)

* Do not load dashboards where not available (#15802)

## What does this PR do?

This PR adds a new setting to Beat to indicate if it has a dashboard or not. If the Beat lacks dashboards, running `setup` does not attempt to load those.

## Why is it important?

Running the command `setup` fails if the Beat does not have dashboards in the appropriate folder.

## Checklist

<!-- Mandatory
Add a checklist of things that are required to be reviewed in order to have the PR approved

List here all the items you have verified BEFORE sending this PR. Please DO NOT remove any item, striking through those that do not apply. (Just in case, strikethrough uses two tildes. ~~Scratch this.~~)
-->

- [x] My code follows the style guidelines of this project
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] I have made the corresponding change to the default configuration files
- [x] I have added tests that prove my fix is effective or that my feature works

## How to test this PR locally

Both Journalbeat and Functionbeat are affected. So both Beats can/should be tested.

```sh
./functionbeat setup
```

## Related issues

Closes #13276
Closes #11751
(cherry picked from commit 8260623)

* fix changelog again
@alphaDev23
Copy link

Can anyone confirm whether the journalbeat dashboards work and in which version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants