# Elastic Cloud don't see events from NXLog

**URL:** https://discuss.elastic.co/t/elastic-cloud-dont-see-events-from-nxlog/303677
**Category:** Elasticsearch
**Created:** [May 1, 2022, 4:19pm UTC](https://discuss.elastic.co/t/elastic-cloud-dont-see-events-from-nxlog/303677 "2022-05-01T16:19:11Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![vasjab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vasjab/32/105082_2.png) [@vasjab](https://discuss.elastic.co/u/vasjab)
#### Post date: [May 1, 2022, 4:19pm UTC](https://discuss.elastic.co/t/elastic-cloud-dont-see-events-from-nxlog/303677/1 "2022-05-01T16:19:11Z")

</div>

Hello.

I'm trying to configure nxlog with Elastic cloud instance but Elastic don't see events.  
Can you please help how I can read events on Elastic cloud?

Thanks.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 1, 2022, 11:28pm UTC](https://discuss.elastic.co/t/elastic-cloud-dont-see-events-from-nxlog/303677/2 "2022-05-01T23:28:50Z")

</div>

Welcome to our community! 😃

Are you sure nxlog is configured correctly? We aren't experts on that here, so you may need to ask those developers.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [May 1, 2022, 11:30pm UTC](https://discuss.elastic.co/t/elastic-cloud-dont-see-events-from-nxlog/303677/3 "2022-05-01T23:30:24Z")

</div>

Hi @vasjab welcome to the community.

In order for us to help you you're going to need to provide your configurations otherwise we just be guessing.

How are you collecting these logs with logstash or filebeat?

Please provide details and perhaps we can help.

---

<div class="post-metadata">

### Author: ![vasjab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vasjab/32/105082_2.png) [@vasjab](https://discuss.elastic.co/u/vasjab)
#### Post date: [May 2, 2022, 6:09am UTC](https://discuss.elastic.co/t/elastic-cloud-dont-see-events-from-nxlog/303677/4 "2022-05-02T06:09:11Z")

</div>

Hi, Mark.  
I think that nxlog configured correctly, for this case used config from documentation:

```auto
define ES_URL https://<your_elasticsearch_endpoint>
define API_KEY <your_api_key>

<Output elasticsearch>
    Module om_elasticsearch
    URL %ES_URL%/_bulk
    AddHeader Authorization: ApiKey %API_KEY%
    HTTPSCAFile /path/to/elastic-cloud-ca.pem
</Output>

```

---

<div class="post-metadata">

### Author: ![vasjab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vasjab/32/105082_2.png) [@vasjab](https://discuss.elastic.co/u/vasjab)
#### Post date: [May 2, 2022, 6:20am UTC](https://discuss.elastic.co/t/elastic-cloud-dont-see-events-from-nxlog/303677/5 "2022-05-02T06:20:05Z")

</div>

Hi Stephen. I've added configuration below.

```auto
LogFile c:\Program Files\nxlog\data\nxlog.log
LogLevel INFO

<Extension _json>
    Module xm_json
    DateFormat YYYY-MM-DDThh:mm:ss.sUTC
    UnFlatten TRUE
</Extension>

<Input in1>
	Module im_testgen
	MaxCount 1000
</Input>

<Output o1>
    Module om_elasticsearch
    URL https://<your_elasticsearch_endpoint>/_bulk
    AddHeader Authorization: ApiKey <your_api_key>
   HTTPSCAFile 'c:/cert/elastic-cert.pem'
</Output>

<Output o2>
    Module om_file
    File 'C:/www/nxlog_output.txt'
    OutputType LineBased
</Output>

<Route r1>
	Path in1 => o1, o2
</Route>

```

For this case I'm used oficial [documentation](https://nxlog.co/documentation/nxlog-user-guide/elastic-cloud.html).

I've sent tests events, but also not works with im\_msvistalog. Output nxlog received data but Elastic don't see nothing.

Thanks.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 30, 2022, 6:20am UTC](https://discuss.elastic.co/t/elastic-cloud-dont-see-events-from-nxlog/303677/6 "2022-05-30T06:20:35Z")

</div>

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