# How to search in my index?

**URL:** <https://forum.opensearch.org/t/how-to-search-in-my-index/19312>\
**Category:** OpenSearch\
**Created:** [May 11, 2024, 9:57am UTC](https://forum.opensearch.org/t/how-to-search-in-my-index/19312 "2024-05-11T09:57:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![m\_pahlevanzadeh](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/m_pahlevanzadeh/32/7468_2.png) [@m\_pahlevanzadeh](https://forum.opensearch.org/u/m_pahlevanzadeh)\
**Post date:** [May 11, 2024, 9:57am UTC](https://forum.opensearch.org/t/how-to-search-in-my-index/19312/1 "2024-05-11T09:57:45Z")

</div>

After removng ELK, I migrated to opensearch.  
Now I have the following packages:  
`logstash-oss `, `opensearch` and `opensearch-dashboards`  
I get my data in input such as:

```auto
input {
         udp {
        .....

```

It’s work and even I can my information in `stdout {}` I don’t have problem with them.  
I have the following filter for jasonize my information:

```auto
filter {
    dissect {
        mapping => {
            "message" => "%{timestamp} %{+timestamp} %{+timestamp} %{year} %{priority} %{sourceIP} %{host} %{msg}"
        }
        remove_field => ["message"]
    }
    kv {
        source => "msg"
        remove_field => ["msg"]
    }
}

```

And with `stdout { }` I can see jsonized my information.  
With `output` I send my information to `opensearch`:

```auto
output {
          opensearch {
                 host => ["https://127.0.0.1:9200"]
                 user => "admin"
                 password => "mypasswd"
                 ssl => false
                 ssl_certificate_verification => false
                 index => "logstash-logs-%{+YYYY.MM.dd}"
            }
}

```

When I see index management, I can see name of my index, But When I open discover I only see 2 index pattern (default sample) and I don’t see my pattern.  
How can I search in my index?

---

<div class="post-metadata">

**Author:** ![m\_pahlevanzadeh](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/m_pahlevanzadeh/32/7468_2.png) [@m\_pahlevanzadeh](https://forum.opensearch.org/u/m_pahlevanzadeh)\
**Post date:** [May 11, 2024, 10:51am UTC](https://forum.opensearch.org/t/how-to-search-in-my-index/19312/2 "2024-05-11T10:51:44Z")

</div>

You have to define `Index Pattern`
