# NEST is returning filebeat @timestamp as null always

**URL:** <https://discuss.elastic.co/t/nest-is-returning-filebeat-timestamp-as-null-always/58044>\
**Category:** Elasticsearch\
**Created:** [August 15, 2016, 5:24pm UTC](https://discuss.elastic.co/t/nest-is-returning-filebeat-timestamp-as-null-always/58044 "2016-08-15T17:24:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![agonzalez](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@agonzalez](https://discuss.elastic.co/u/agonzalez)\
**Post date:** [August 15, 2016, 5:24pm UTC](https://discuss.elastic.co/t/nest-is-returning-filebeat-timestamp-as-null-always/58044/1 "2016-08-15T17:24:46Z")

</div>

when retrieving documents with NEST with this code:

> ```
> var result = elk.Search<FileBeatDto>(x => x
> .Index("filebeat-*")                
> .AllIndices()
> .Type(type)                               
> .Query(q => 
> q.Match(qs => qs.Field("fields.asset_tag").Query(asset_tag)) &&
> q.Match(qs => qs.Field("message").Query(filter))
> )
> .Take(lines)
> );
> 
> ```

I get documents but the timestamp is always null.

This is FilebeatDto:

> ```
> public class FileBeatDto
> {
> public DateTime timestamp { get; set; }
> public string datetime { get; set; }
> public DateTime received_at { get; set; }
> public int offset { get; set; }
> public string version { get; set; }
> public string input_type { get; set; }
> public int count { get; set; }
> public Beat beat { get; set; }
> public string host { get; set; }
> public string source { get; set; }
> public string message { get; set; }
> public string type { get; set; }
> public object fields { get; set; }
> public List<string> tags { get; set; }
> }
> 
> ```

Any idea why timestamp is null? I tried with @timestamp and timestamp.

---

<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:** [July 5, 2017, 10:27pm UTC](https://discuss.elastic.co/t/nest-is-returning-filebeat-timestamp-as-null-always/58044/2 "2017-07-05T22:27:41Z")

</div>

Closed on July 5, 2017, 10:27pm UTC


