# How use conditons in Log hub

**URL:** <https://community.integray.com/t/how-use-conditons-in-log-hub/247>\
**Category:** Platform discussions\
**Tags:** logging\
**Created:** [February 9, 2024, 4:52pm UTC](https://community.integray.com/t/how-use-conditons-in-log-hub/247 "2024-02-09T16:52:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moerani](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@Moerani](https://community.integray.com/u/Moerani)\
**Post date:** [February 9, 2024, 4:52pm UTC](https://community.integray.com/t/how-use-conditons-in-log-hub/247/1 "2024-02-09T16:52:15Z")

</div>

Hi,  
could anyone help me set the logging rules so that only a few specific tasks are logged?

 ![obrazek](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/a91817c7df2dcb7162592f24396801167dcf179f.png)

---

<div class="post-metadata">

**Author:** ![tomas.kocyan](https://dub1.discourse-cdn.com/flex017/user_avatar/community.integray.com/tomas.kocyan/32/41_2.png) [@tomas.kocyan](https://community.integray.com/u/tomas.kocyan)\
**Post date:** [February 12, 2024, 6:15am UTC](https://community.integray.com/t/how-use-conditons-in-log-hub/247/2 "2024-02-12T06:15:03Z")

</div>

Dear Moerani,

it’s very simple. In the list of logging rules, click on “Templates” (or in the rule detail on “Load from template”) and from the “Tasks” group, select “Specific task ID”.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/8895b20558f77d59928b0a8a589e5005216d4af3.png)

Then click on Key.TaskID:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/cf3daa8b9cd0a1783e41e090db15a6d47f410106.png)

Change the condition to “In” and specify the IDs of the tasks you want to log:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/0c425eda8d90faeefef9e8fd43bcf43205d5a924.png)

That’s all!

After save, do not forget to click on Apply rules button.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.integray.com/u/system)\
**Post date:** [February 19, 2024, 6:15am UTC](https://community.integray.com/t/how-use-conditons-in-log-hub/247/3 "2024-02-19T06:15:44Z")

</div>

Closed on February 19, 2024, 6:15am UTC

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