# Graylog on single server

**URL:** <https://community.graylog.org/t/graylog-on-single-server/4232>\
**Category:** Graylog Central (peer support)\
**Created:** [February 17, 2018, 4:16pm UTC](https://community.graylog.org/t/graylog-on-single-server/4232 "2018-02-17T16:16:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sateesh](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sateesh](https://community.graylog.org/u/sateesh)\
**Post date:** [February 17, 2018, 4:16pm UTC](https://community.graylog.org/t/graylog-on-single-server/4232/1 "2018-02-17T16:16:16Z")

</div>

Hi,

I have configured on AWS ec2 instance Graylog, on Single instance everything is running on single machine, is it creates any problems.

Regards  
Sateesh

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [February 18, 2018, 10:44am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/2 "2018-02-18T10:44:30Z")

</div>

Do you have a specific question?  
Maybe elaborate on your problem.

---

<div class="post-metadata">

**Author:** ![sateesh](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sateesh](https://community.graylog.org/u/sateesh)\
**Post date:** [February 19, 2018, 5:50am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/3 "2018-02-19T05:50:56Z")

</div>

Does it creates any problem Web portal, elastic search and gralylog2 on single instance.

Regards  
Sateesh

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [February 19, 2018, 8:09am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/4 "2018-02-19T08:09:58Z")

</div>

No, that should work totally fine if the machine has sufficient resources (e. g. minimum of 4 GB of memory).

---

<div class="post-metadata">

**Author:** ![sateesh](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sateesh](https://community.graylog.org/u/sateesh)\
**Post date:** [February 22, 2018, 7:46am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/5 "2018-02-22T07:46:29Z")

</div>

thank you,

/var/lib/elasticsearch/ currently my data store path is default one if i change to different directory /esdata/data , changed in configuration also vim /etc/elasticsearch/elasticsearch.yml but process is getting failed due to data store path is different.

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [February 22, 2018, 8:14am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/6 "2018-02-22T08:14:43Z")

</div>

Please elaborate and provide all necessary details to reproduce the issue.

---

<div class="post-metadata">

**Author:** ![sateesh](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sateesh](https://community.graylog.org/u/sateesh)\
**Post date:** [February 22, 2018, 9:21am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/7 "2018-02-22T09:21:50Z")

</div>

want to change default data store index directory

---

<div class="post-metadata">

**Author:** ![sateesh](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sateesh](https://community.graylog.org/u/sateesh)\
**Post date:** [February 22, 2018, 9:41am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/8 "2018-02-22T09:41:07Z")

</div>

after changing the logs and data directory i am getting below error.

```nohighlight
Caused by: java.nio.file.AccessDeniedException: /esdata/data/nodes/0/indices/6vNyq9htSXOWBrqL9mgI_A/_state/.es_temp_file
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) ~[?:?]
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:?]
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:?]
        at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) ~[?:?]

```

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [February 22, 2018, 10:07am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/9 "2018-02-22T10:07:49Z")

</div>

Does the system user running Elasticsearch have sufficient permissions to access that path?  
What’s the output of the following commands?

```nohighlight
# namei -l /esdata/data/nodes/0/indices/
# namei -l /esdata/data/nodes/0/indices/6vNyq9htSXOWBrqL9mgI_A/_state/
# namei -l /esdata/data/nodes/0/indices/6vNyq9htSXOWBrqL9mgI_A/_state/.es_temp_file

```

---

<div class="post-metadata">

**Author:** ![sateesh](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sateesh](https://community.graylog.org/u/sateesh)\
**Post date:** [February 22, 2018, 10:18am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/10 "2018-02-22T10:18:22Z")

</div>

Thank you its working now

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [February 22, 2018, 10:21am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/11 "2018-02-22T10:21:59Z")

</div>

Great! What was the problem?

---

<div class="post-metadata">

**Author:** ![sateesh](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sateesh](https://community.graylog.org/u/sateesh)\
**Post date:** [February 22, 2018, 10:23am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/12 "2018-02-22T10:23:15Z")

</div>

Permission issue for particular directory

---

<div class="post-metadata">

**Author:** ![sateesh](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sateesh](https://community.graylog.org/u/sateesh)\
**Post date:** [February 22, 2018, 10:54am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/13 "2018-02-22T10:54:27Z")

</div>

Now after rebooting machine,  
getting below error in dashboard  
Could not execute search  
There was an error executing your search. Please check your Graylog server logs for more information.

Error Message:  
Unable to perform search query.  
Details:  
Search status code:  
500  
Search response:  
cannot GET [http://pulicip:9000/api/search/universal/relative?query=\*&range=300&limit=150&sort=timestamp%3Adesc](http://pulicip:9000/api/search/universal/relative?query=%2A&range=300&limit=150&sort=timestamp%3Adesc) (500)

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [February 22, 2018, 11:45am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/14 "2018-02-22T11:45:57Z")

</div>

> [@sateesh](#):
>
> Please check your Graylog server logs for more information.

Maybe you should do this…  
[http://docs.graylog.org/en/2.4/pages/configuration/file\_location.html](http://docs.graylog.org/en/2.4/pages/configuration/file_location.html)

---

<div class="post-metadata">

**Author:** ![sateesh](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sateesh](https://community.graylog.org/u/sateesh)\
**Post date:** [February 23, 2018, 8:58am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/15 "2018-02-23T08:58:13Z")

</div>

Hi,

I am not able to see the full logs, i have installed on client machine nxlog,  
in portal shows only the below mentioned out put, not complete logs.

2018-02-23 13:06:19.000 ip-x.x.x.x  
[2018-02-23 07:36:19.197][http-nio-8080-exec-4][INFO][[c.c.a.d.Us](http://c.c.a.d.Us)

Regards  
Sateesh

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [February 23, 2018, 9:29am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/16 "2018-02-23T09:29:46Z")

</div>

Sorry, but if you don’t provide the respective logs, we’re unable to help you.

You can probably download the log files from the machine running Graylog (and Elasticsearch) with an SSH or SCP client.

---

<div class="post-metadata">

**Author:** ![sateesh](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sateesh](https://community.graylog.org/u/sateesh)\
**Post date:** [February 23, 2018, 9:43am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/17 "2018-02-23T09:43:04Z")

</div>

Graylog-server logs

ERROR [DecodingProcessor] Error processing message RawMessage{id=0c7f2d47-187d-11e8-828a-02824ea336b6, journalOffset=3264785, codec=gelf, payloadSize=124, timestamp=2018-02-23T09:36:39.444Z, remoteAddress=/x.x.x.x:38659}  
com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, code 6)): only regular white space (\r, \n, \t) is allowed between tokens

for elasticsearch there is no error  
[o.e.c.r.a.AllocationService] [\_Y24BH1] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[graylog\_0][0]] …

curl -XGET ‘localhost:9200/\_cluster/health?pretty’  
{  
“cluster\_name” : “graylog”,  
“status” : “green”,  
“timed\_out” : false,  
“number\_of\_nodes” : 1,  
“number\_of\_data\_nodes” : 1,  
“active\_primary\_shards” : 1,  
“active\_shards” : 1,  
“relocating\_shards” : 0,  
“initializing\_shards” : 0,  
“unassigned\_shards” : 0,  
“delayed\_unassigned\_shards” : 0,  
“number\_of\_pending\_tasks” : 0,  
“number\_of\_in\_flight\_fetch” : 0,  
“task\_max\_waiting\_in\_queue\_millis” : 0,  
“active\_shards\_percent\_as\_number” : 100.0

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [February 23, 2018, 10:02am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/18 "2018-02-23T10:02:38Z")

</div>

> [@sateesh](#):
>
> ```auto
> ERROR [DecodingProcessor] Error processing message RawMessage{id=0c7f2d47-187d-11e8-828a-02824ea336b6, journalOffset=3264785, codec=gelf, payloadSize=124, timestamp=2018-02-23T09:36:39.444Z, remoteAddress=/x.x.x.x:38659}
> 
> com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, code 6)): only regular white space (\r, \n, \t) is allowed between tokens
> 
> ```

This points to an invalid GELF message received by a GELF TCP or UDP input.

---

<div class="post-metadata">

**Author:** ![sateesh](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sateesh](https://community.graylog.org/u/sateesh)\
**Post date:** [February 23, 2018, 10:09am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/19 "2018-02-23T10:09:13Z")

</div>

> [@sateesh](#):
>
> Error processing message RawMessage

I am using both side TCP only

Problem is resolved after adding this parameter in ShortMessageLength -1 in nxlog.conf parameter.

---

<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:** [March 9, 2018, 10:09am UTC](https://community.graylog.org/t/graylog-on-single-server/4232/20 "2018-03-09T10:09:32Z")

</div>

Closed on March 9, 2018, 10:09am UTC

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