# Want to give only specific Webservice or API logs

**URL:** <https://discuss.elastic.co/t/want-to-give-only-specific-webservice-or-api-logs/79204>\
**Category:** Kibana\
**Created:** [March 20, 2017, 6:40am UTC](https://discuss.elastic.co/t/want-to-give-only-specific-webservice-or-api-logs/79204 "2017-03-20T06:40:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raja1](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Raja1](https://discuss.elastic.co/u/Raja1)\
**Post date:** [March 20, 2017, 6:40am UTC](https://discuss.elastic.co/t/want-to-give-only-specific-webservice-or-api-logs/79204/1 "2017-03-20T06:40:38Z")

</div>

Hi All,

I have a requirement like below. Please help me to make the configuration accordingly.

Collect the logs and index user based APIs.

I am trying to integrate Layer 7 API Gateway logs where i could see many APIs and their logs.What i have done is below.

1. I want to collect all logs from Gateway and store in elasticsearch.
2. By using x-pack i am able to create the users.
3. I am able to search the logs in kibana dashboard.

**Pending actions:**

1. How to restrict the user to access only specific API logs. If he tries to access any other logs kibana should show Accessing invalid API logs.

Please guide me to work on this.

Regards  
Raja

---

<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:** [March 20, 2017, 7:13am UTC](https://discuss.elastic.co/t/want-to-give-only-specific-webservice-or-api-logs/79204/2 "2017-03-20T07:13:29Z")

</div>

You need to use the Security functionality in X-Pack to do access control.

Also, please reformat your post, it is very hard to read.

---

<div class="post-metadata">

**Author:** ![Raja1](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Raja1](https://discuss.elastic.co/u/Raja1)\
**Post date:** [March 20, 2017, 8:08am UTC](https://discuss.elastic.co/t/want-to-give-only-specific-webservice-or-api-logs/79204/3 "2017-03-20T08:08:05Z")

</div>

Hi Mark,

Thanks for your reply.

Yes, I have to use the x-pack to do access control. So, I did it.  
I am able to login kibana by using individual users. Now i want to restrict each user with their own APIs(webservices).

Example:

- A user can only able to search service1 logs
- B user can only able to search service2 logs.

So, I have created 10 users like this in kibana dashboard. Now how can i restrict to view their own service logs.

Hope this is clear to you.

Regards  
Raja

---

<div class="post-metadata">

**Author:** ![Raja1](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Raja1](https://discuss.elastic.co/u/Raja1)\
**Post date:** [March 21, 2017, 1:41am UTC](https://discuss.elastic.co/t/want-to-give-only-specific-webservice-or-api-logs/79204/4 "2017-03-21T01:41:51Z")

</div>

Is there anybody help me on this?

---

<div class="post-metadata">

**Author:** ![Cylindric](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cylindric/32/5660_2.png) [@Cylindric](https://discuss.elastic.co/u/Cylindric)\
**Post date:** [March 21, 2017, 10:27am UTC](https://discuss.elastic.co/t/want-to-give-only-specific-webservice-or-api-logs/79204/5 "2017-03-21T10:27:52Z")

</div>

You'll get more help if you don't keep hiding your messages in code blocks so we have to scroll to read what you've written. Please take out the silly formatting as asked before. That will help you get answers.

---

<div class="post-metadata">

**Author:** ![Raja1](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Raja1](https://discuss.elastic.co/u/Raja1)\
**Post date:** [March 22, 2017, 1:56am UTC](https://discuss.elastic.co/t/want-to-give-only-specific-webservice-or-api-logs/79204/6 "2017-03-22T01:56:38Z")

</div>

Hello,

Sorry for the lengthy information.I am not hiding anything here and also nothing has return in any of my configuration files(logstash,kibana and elasticsearch).

If you can help me hat would be great.  
Hope i made the format now clearly

Regards  
Raja

---

<div class="post-metadata">

**Author:** ![Raja1](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Raja1](https://discuss.elastic.co/u/Raja1)\
**Post date:** [March 28, 2017, 10:21am UTC](https://discuss.elastic.co/t/want-to-give-only-specific-webservice-or-api-logs/79204/7 "2017-03-28T10:21:06Z")

</div>

Hello,

Any one help me on this?

Regards  
Raja

---

<div class="post-metadata">

**Author:** ![Raja1](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Raja1](https://discuss.elastic.co/u/Raja1)\
**Post date:** [April 24, 2017, 3:17am UTC](https://discuss.elastic.co/t/want-to-give-only-specific-webservice-or-api-logs/79204/8 "2017-04-24T03:17:43Z")

</div>

Can someone please help on this request...

---

<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:** [April 24, 2017, 4:23am UTC](https://discuss.elastic.co/t/want-to-give-only-specific-webservice-or-api-logs/79204/9 "2017-04-24T04:23:07Z")

</div>

You probably want [https://www.elastic.co/guide/en/x-pack/current/field-and-document-access-control.html#document-level-security](https://www.elastic.co/guide/en/x-pack/current/field-and-document-access-control.html#document-level-security)

---

<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 22, 2017, 4:29am UTC](https://discuss.elastic.co/t/want-to-give-only-specific-webservice-or-api-logs/79204/10 "2017-05-22T04:29:50Z")

</div>

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