# Problem retrieving data for widget

**URL:** <https://community.graylog.org/t/problem-retrieving-data-for-widget/29029>\
**Category:** Graylog Central (peer support)\
**Tags:** filebeat-windows, elastic\
**Created:** [June 2, 2023, 11:50am UTC](https://community.graylog.org/t/problem-retrieving-data-for-widget/29029 "2023-06-02T11:50:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![fvr\_flho](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@fvr\_flho](https://community.graylog.org/u/fvr_flho)\
**Post date:** [June 2, 2023, 11:50am UTC](https://community.graylog.org/t/problem-retrieving-data-for-widget/29029/1 "2023-06-02T11:50:43Z")

</div>

\*\*

 ![Graylog](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/7/74d1b793033967a9bbf8b4cb2c12df444777a4cc.png)  
:\*\*

- I’m not sure if there’s a connection, but shortly after I have changed the time on my DC’s from 12-hour to 24-hour time format, the Graylog server started to display the message shown in attached picture everywhere within the searh and dashboards fields (we do have a filebeat getting DNS debug logs from the DC’s)
- The node is still active and is processing messages without any problems.

**2. Describe your environment:**

- OS Information: OpenSUSE Leap 15.4

- Package Version: 5.1.1+ef1b993

- Not sure what logs whould be relevant - as I can see no errors (in fact no entries) in graylog nor opensearch logs when I go into the different dashboards (or making a search)

**3. What steps have you already taken to try and solve the problem?**

- I’m lost - so I asked my friend Google… no positive result

**4. How can the community help?**

- Everything would be helpful

Best regards

/Flemming

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [June 2, 2023, 9:25pm UTC](https://community.graylog.org/t/problem-retrieving-data-for-widget/29029/2 "2023-06-02T21:25:09Z")

</div>

Hey @fvr_flho

Couple questions,

Have you tried a different browser? If so do you get same results?  
Hows the status of Graylog. MongoDb and Opensearch ( I assume you using that)?  
Have you tried to create a new widget or is this the default? if so do you get the same results?  
How did you configure Opensearch && Graylog? Are you bale to show the configuration files for each?  
What documentation did you use to install Graylog/OS/MongoDb?

---

<div class="post-metadata">

**Author:** ![fvr\_flho](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@fvr\_flho](https://community.graylog.org/u/fvr_flho)\
**Post date:** [June 5, 2023, 7:30am UTC](https://community.graylog.org/t/problem-retrieving-data-for-widget/29029/3 "2023-06-05T07:30:57Z")

</div>

Hi @gsmith

Have you tried a different browser? If so do you get same results?

- I have tried both Edge (Chromium) & Firefox, both with same results
- I have tried with the built in root user, and an LDAP enabled user, both with same results.

Hows the status of Graylog. MongoDb and Opensearch ( I assume you using that)?

- Correctly assumed 🙂 - status as follows:

> mygraylog:~ # systemctl status graylog-server.service  
> ● graylog-server.service - Graylog server  
> Loaded: loaded (/usr/lib/systemd/system/graylog-server.service; enabled; vendor preset: disabled)  
> Active: active (running) since Fri 2023-06-02 12:53:35 CEST; 2 days ago  
> Docs: [http://docs.graylog.org/](http://docs.graylog.org/)  
> Main PID: 1942 (graylog-server)  
> Tasks: 317 (limit: 4915)  
> CGroup: /system.slice/graylog-server.service  
> ├─ 1942 /bin/sh /usr/share/graylog-server/bin/graylog-server  
> └─ 1945 /usr/share/graylog-server/jvm/bin/java -Xms1g -Xmx1g -server -XX:+UseG1GC -XX:-OmitStackTraceInFastThrow -Djdk.tls.acknowledgeCloseNotify=true -Dlog4j2.formatMsgNoLookups=true -jar -Dlog4j.configurationFile=f\>  
> Notice: journal has been rotated since unit was started, output may be incomplete.

> mygraylog:~ # systemctl status mongod.service  
> ● mongod.service - MongoDB Database Server  
> Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)  
> Active: active (running) since Fri 2023-06-02 12:53:35 CEST; 2 days ago  
> Docs: [https://docs.mongodb.org/manual](https://docs.mongodb.org/manual)  
> Main PID: 1943 (mongod)  
> CGroup: /system.slice/mongod.service  
> └─ 1943 /usr/bin/mongod -f /etc/mongod.conf  
> Notice: journal has been rotated since unit was started, output may be incomplete.

> mygraylog:~ # systemctl status opensearch.service  
> ● opensearch.service - OpenSearch  
> Loaded: loaded (/usr/lib/systemd/system/opensearch.service; enabled; vendor preset: disabled)  
> Active: active (running) since Fri 2023-06-02 12:53:37 CEST; 2 days ago  
> Docs: [https://opensearch.org/](https://opensearch.org/)  
> Main PID: 1089 (java)  
> Tasks: 112 (limit: 4915)  
> CGroup: /system.slice/opensearch.service  
> └─ 1089 /usr/share/opensearch/jdk/bin/java -Xshare:auto -Dopensearch.networkaddress.cache.ttl=60 -Dopensearch.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=U\>  
> Jun 05 00:00:04 mygraylog systemd-entrypoint[1089]: at org.opensearch.cluster.service.MasterService.runTasks(MasterService.java:295)  
> Jun 05 00:00:04 mygraylog systemd-entrypoint[1089]: at org.opensearch.cluster.service.MasterService$Batcher.run(MasterService.java:206)  
> Jun 05 00:00:04 mygraylog systemd-entrypoint[1089]: at org.opensearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:179)  
> Jun 05 00:00:04 mygraylog systemd-entrypoint[1089]: at org.opensearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:217)  
> Jun 05 00:00:04 mygraylog systemd-entrypoint[1089]: at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:747)  
> Jun 05 00:00:04 mygraylog systemd-entrypoint[1089]: at org.opensearch.common.util.concurrent.PrioritizedOpenSearchThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedOpenSearchThreadPoolExecutor.jav\>  
> Jun 05 00:00:04 mygraylog systemd-entrypoint[1089]: at org.opensearch.common.util.concurrent.PrioritizedOpenSearchThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedOpenSearchThreadPoolExecutor.java:245)  
> Jun 05 00:00:04 mygraylog systemd-entrypoint[1089]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)  
> Jun 05 00:00:04 mygraylog systemd-entrypoint[1089]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)  
> Jun 05 00:00:04 mygraylog systemd-entrypoint[1089]: at java.base/java.lang.Thread.run(Thread.java:833)  
> lines 1-19/19 (END)

Have you tried to create a new widget or is this the default? if so do you get the same results?

- Same result if I use the default widget, an imported from Marketplace and if I create a new one.

How did you configure Opensearch && Graylog? Are you bale to show the configuration files for each?

- Below I have provided the uncommented sections of the config files:

> /etc/opensearch/opensearch.yml:  
> cluster.name: mygraylog.dom.name  
> path.data: /data/opensearch  
> path.logs: /var/log/opensearch

> /etc/graylog/server/server.conf:  
> is\_leader = true  
> node\_id\_file = /etc/graylog/server/node-id  
> password\_secret =   
> root\_username =   
> root\_password\_sha2 =   
> bin\_dir = /usr/share/graylog-server/bin  
> data\_dir = /data/graylog-server  
> plugin\_dir = /usr/share/graylog-server/plugin  
> http\_bind\_address = 192.168.10.21:9000  
> http\_enable\_tls = true  
> http\_tls\_cert\_file = //mygraylog.dom.name.fullchained.crt  
> http\_tls\_key\_file = //mygraylog.dom.name.pkcs8.key  
> stream\_aware\_field\_types=false  
> rotation\_strategy = count  
> elasticsearch\_max\_docs\_per\_index = 20000000  
> elasticsearch\_max\_number\_of\_indices = 20  
> retention\_strategy = delete  
> elasticsearch\_shards = 4  
> elasticsearch\_replicas = 0  
> elasticsearch\_index\_prefix = graylog  
> allow\_leading\_wildcard\_searches = true  
> allow\_highlighting = false  
> elasticsearch\_analyzer = standard  
> output\_batch\_size = 500  
> output\_flush\_interval = 1  
> output\_fault\_count\_threshold = 5  
> output\_fault\_penalty\_seconds = 30  
> processbuffer\_processors = 5  
> outputbuffer\_processors = 3  
> processor\_wait\_strategy = blocking  
> ring\_size = 65536  
> inputbuffer\_ring\_size = 65536  
> inputbuffer\_processors = 2  
> inputbuffer\_wait\_strategy = blocking  
> message\_journal\_enabled = true  
> message\_journal\_dir = /data/graylog-server/journal  
> message\_journal\_max\_age = 12h  
> message\_journal\_max\_size = 25gb  
> message\_journal\_flush\_age = 5m  
> lb\_recognition\_period\_seconds = 3  
> mongodb\_uri = mongodb://localhost/graylog  
> mongodb\_max\_connections = 1000

What documentation did you use to install Graylog/OS/MongoDb?

- [https://go2docs.graylog.org/5-0/downloading\_and\_installing\_graylog/suse\_installation.htm](https://go2docs.graylog.org/5-0/downloading_and_installing_graylog/suse_installation.htm)

Best regards  
/Flemming

---

<div class="post-metadata">

**Author:** ![fvr\_flho](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@fvr\_flho](https://community.graylog.org/u/fvr_flho)\
**Post date:** [June 6, 2023, 7:32am UTC](https://community.graylog.org/t/problem-retrieving-data-for-widget/29029/4 "2023-06-06T07:32:48Z")

</div>

Hi

By the way, I have installed the following from marketplace:

[https://community.graylog.org/t/windows-dns-for-graylog/22999](https://community.graylog.org/t/windows-dns-for-graylog/22999)

And according to the documentation for this, I have made the following change:

> curl -XPUT localhost:9200/\_index\_template/graylog -H ‘Content-Type: application/json’ -d ’  
> {  
> “index\_patterns”: [“graylog\*”],  
> “template”: {  
> “settings”: {  
> “index.refresh\_interval”: “30s”  
> },  
> “mappings”: {  
> “properties”: {  
> “ThreadID”: {  
> “type”: “keyword”  
> }  
> }  
> }  
> }  
> }’

Best regards  
/Flemming

---

<div class="post-metadata">

**Author:** ![fvr\_flho](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@fvr\_flho](https://community.graylog.org/u/fvr_flho)\
**Post date:** [June 6, 2023, 9:53am UTC](https://community.graylog.org/t/problem-retrieving-data-for-widget/29029/5 "2023-06-06T09:53:30Z")

</div>

Hi

Just as information - tried to remove the setting made previously with:

> curl -XDELETE localhost:9200/\_index\_template/graylog -H ‘Content-Type: application/json’

Didn’t help - still no possibility to use Graylog at all ☹

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [June 7, 2023, 2:06am UTC](https://community.graylog.org/t/problem-retrieving-data-for-widget/29029/6 "2023-06-07T02:06:48Z")

</div>

Hey @fvr_flho

Thanks for the info. First thing I would suggest is not use the plugin and see if you can create your own widget.  
I spotted a couple things.Your graylog config file does not seem correct.

**Graylog configuration file.**

Your configuration.

```auto
http_bind_address = 192.168.10.21:9000
http_enable_tls = true
http_tls_cert_file = //mygraylog.dom.name.fullchained.crt
http_tls_key_file = //mygraylog.dom.name.pkcs8.key

```

My configuration

```auto
[root@graylog graylog_user]# cat /etc/graylog/server/server.conf | egrep -v "^\s*(#|$)"
is_leader = true
node_id_file = /etc/graylog/server/node-id
password_secret = epOqmLi7r7CdZxl76QOQxr8bRUP
root_password_sha2 = 5e884898da28047151d0e56f8dc6
root_email = "greg.smith@domain.com"
root_timezone = America/Chicago
bin_dir = /usr/share/graylog-server/bin
data_dir = /var/lib/graylog-server
plugin_dir = /usr/share/graylog-server/plugin
http_bind_address = 192.168.1.100:9000
http_publish_uri = https://graylog.doamin.com:9000/
http_enable_cors = true
http_enable_tls = true
http_tls_cert_file = /etc/ssl/certs/graylog/graylog-certificate.pem
http_tls_key_file = /etc/ssl/certs/graylog/graylog-key.pem
http_tls_key_password = secret

```

**Opensearch Configuration**

If you using localhost in connecting Graylog to Opensearch. Here is basic configurations

```auto
cluster.name: graylog
path.data: /var/lib/opensearch
path.logs: /var/log/opensearch
network.host: localhost {and/or 127.0.0.1}
http.port: 9200
action.auto_create_index: false
discovery.type: single-node
bootstrap.memory_lock: true
plugins.security.disabled: true
plugins.security.system_indices.enabled: false

```

If you can run Graylog without certificates (i.e., HTTP) then either its your cretificates or configurations made. Dont forget to check firewall or Apparmor/Selinux , just in case.

If you followed this documentation for certificates.

- [Using HTTPS](https://go2docs.graylog.org/5-0/setting_up_graylog/https.html?Highlight=https)

Then you should have these two certificates…

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/c/c9fa00b0e71793cb6df68a4034ae693f764c7d84.png)

hope that helps

---

<div class="post-metadata">

**Author:** ![fvr\_flho](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@fvr\_flho](https://community.graylog.org/u/fvr_flho)\
**Post date:** [June 7, 2023, 8:08am UTC](https://community.graylog.org/t/problem-retrieving-data-for-widget/29029/7 "2023-06-07T08:08:28Z")

</div>

Hi @gsmith

I think the only difference between us, is the naming of the files… my .crt & .key is the same as .pem in your setup (old habit from my side, I prefer the naming on order to differ between the key and the cert)

I have tried without SSL, and the problem remains - So I suspect the upgrade has messed something up in OepnSearch… maybe I should open a bug 🙂

Best regards  
/Flemming

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [June 21, 2023, 8:09am UTC](https://community.graylog.org/t/problem-retrieving-data-for-widget/29029/8 "2023-06-21T08:09:00Z")

</div>

Closed on June 21, 2023, 8:09am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
