# let

```
let n = 10;  // number
let computername = "cloudway";  // string
let Day = ago(30d); // datetime 
UCClient
| where TimeGenerated > Day
| where DeviceName has computername
| take n
```

<figure><img src="https://3533425259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbx8yn20QqNJtsVaH9CY7%2Fuploads%2FToUHYMN4mPK2p9NV7Dca%2Fimage.png?alt=media&#x26;token=cd28bd70-4f6f-4df4-b222-c287502625a7" alt=""><figcaption></figcaption></figure>
