George Bridgeman
George Bridgeman
  • 23
  • 180 455
Working with dates in Elasticsearch and OpenSearch
I don't think I've ever met a Developer who loves working with dates, times, and timezones. Fortunately, however, Elasticsearch and OpenSearch have great support and tooling for with temporal data.
In this tutorial, I show how to store and query date values. There's more detail to the topic than first meets the eye!
มุมมอง: 2 507

วีดีโอ

Bool queries in Elasticsearch and OpenSearch
มุมมอง 2.8Kปีที่แล้ว
Individual queries are quite limiting. We need the ability to combine multiple queries with boolean logic, and that's exactly what the bool query is for! I show how to combine multiple queries in AND, OR, and NOT-type operations. I see a lot of people get caught out by the default behaviour of the `should` clauses, which are often interpreted as an `OR` operator, yet don't work that way by defa...
Range queries in Elasticsearch and OpenSearch
มุมมอง 3.3Kปีที่แล้ว
Range queries allow you to find documents where field values are greater than, greater than or equal, less than, and less than or equal to certain values. They work over numeric, IP, and even range field types. In this tutorial, I show some common uses of the range query type.
Term queries in Elasticsearch and OpenSearch
มุมมอง 3.2Kปีที่แล้ว
Term queries are the more simple type of query in Elasticsearch and OpenSearch. They can be used for matching text, numerics, IPs, and other field types in a precise way. In this tutorial, I explain some of the common term query types.
Introduction to Elasticsearch and OpenSearch queries
มุมมอง 7Kปีที่แล้ว
Let's write our first query! We'll start with a match_all query to return all documents from one or more indices. This first lesson introduces the main concepts we need to know before looking at some more advanced queries.
Updating documents in Elasticsearch/OpenSearch
มุมมอง 4.1Kปีที่แล้ว
Updating documents works differently to how you'd likely expect. There's a special API for it, and updating a document is not a single operation. I show how to update single documents to change the value of existing fields. More complex operations can be done using scripted updates, which we'll cover in a later lesson.
Reading documents in Elasticsearch/OpenSearch
มุมมอง 5Kปีที่แล้ว
We have created some documents in an index, so let's now have a look at how to read those documents back from the index.
Creating documents in Elasticsearch/OpenSearch
มุมมอง 8Kปีที่แล้ว
Creating documents in Elasticsearch and OpenSearch can be done in different ways depending on your needs. I demonstrate different ways of creating and replacing documents in this video, showing how document IDs can be generated for you, and how to use your own.
Introduction to Elasticsearch and OpenSearch documents and CRUD operations
มุมมอง 13Kปีที่แล้ว
I explain what a document is, and how we can construct one from CSV data. I then introduce the different operation types that allow you to perform create, read, update, and delete operations through Elasticsearch/OpenSearch APIs.
Elasticsearch and OpenSearch field types
มุมมอง 3.9Kปีที่แล้ว
There is a huge range (pun intended) of different field types available in Elasticsearch and OpenSearch. In this lesson, I introduce some of the more commonly used ones.
Explicit index mappings in Elasticsearch and OpenSearch
มุมมอง 3.2Kปีที่แล้ว
Dynamic mappings are great for getting started with a new index, but you'll often want your mapping to be more rigid and not allow new fields to be added automatically. Explicit mappings allow you to define the mapping up-front and deal with clients trying to add new fields to the index. I show how to define an explicit mapping and set options for how unmapped fields should be dealt with.
Dynamic templates in Elasticsearch and OpenSearch
มุมมอง 3.1Kปีที่แล้ว
How to use dynamic templates in your Elasticsearch or OpenSearch mappings. This allows you to specify custom mappings for new dynamic fields based on field names or types.
Dynamic index mappings in Elasticsearch and OpenSearch
มุมมอง 4Kปีที่แล้ว
I introduce Elasticsearch/OpenSearch dynamic mappings, show how they work, explain some of the drawbacks of using them, and demonstrate type detection.
Elasticsearch and OpenSearch index creation
มุมมอง 9Kปีที่แล้ว
How to create an Elasticsearch or OpenSearch index, specifying settings, and defining a mapping.
How I fixed my Elasticsearch index mapping
มุมมอง 4.7Kปีที่แล้ว
I created an Elasticsearch/OpenSearch index mapping that couldn't answer questions I asked it, so I built two alternative mappings for the same data. One is a very wide, dynamic, and update-heavy mapping that's easy to query. The other is strict and tidy, but uses nested documents. There are pros and cons to each, and I discuss those. Three costumes for the same data!
Elasticsearch anti-patterns and bad practices to be aware of
มุมมอง 28Kปีที่แล้ว
Elasticsearch anti-patterns and bad practices to be aware of
Elasticsearch text analysis and full text search - a quick introduction
มุมมอง 20K2 ปีที่แล้ว
Elasticsearch text analysis and full text search - a quick introduction
Visualising an Elasticsearch cluster
มุมมอง 1.6K2 ปีที่แล้ว
Visualising an Elasticsearch cluster
Elasticsearch lab exercises Part 2 - exam practice and learning
มุมมอง 1.5K2 ปีที่แล้ว
Elasticsearch lab exercises Part 2 - exam practice and learning
Elasticsearch lab exercises - exam practice and learning
มุมมอง 6K2 ปีที่แล้ว
Elasticsearch lab exercises - exam practice and learning
Installing and configuring Elasticsearch using Ansible
มุมมอง 4.6K3 ปีที่แล้ว
Installing and configuring Elasticsearch using Ansible
Technical certifications : What are they? Are they worth it? Who can they help?
มุมมอง 1.2K3 ปีที่แล้ว
Technical certifications : What are they? Are they worth it? Who can they help?
What are Elasticsearch shards? Why do they matter? Elasticsearch cluster architecture explained.
มุมมอง 41K3 ปีที่แล้ว
What are Elasticsearch shards? Why do they matter? Elasticsearch cluster architecture explained.

ความคิดเห็น

  • @yassinouakka126
    @yassinouakka126 11 วันที่ผ่านมา

    wonderful work❤

  • @MikeBertelsenDK
    @MikeBertelsenDK 11 วันที่ผ่านมา

    I started going through a Udemy course on Elasticsearch and came to a section about Shards. When the chapter was complete I still didn't understand fully what a shard is. I searched on TH-cam and ended up on this video. You do a great job of explaining it so I (as a complete beginner) have a better understanding. Kudos to you for providing this video :)

  • @cliffmathew
    @cliffmathew 24 วันที่ผ่านมา

    Very clearly explained. Thanks

  • @Guille495
    @Guille495 29 วันที่ผ่านมา

    Awesome explanation, I love your narrative style, it really underlines the why and how of the current ecosystem!

  • @medovanx
    @medovanx หลายเดือนก่อน

    This is really one of the most useful videos that introduced ES to me.

  • @王磊-p3q
    @王磊-p3q หลายเดือนก่อน

    Thanks a lot!! Impeccable content!

  • @meitsionmina
    @meitsionmina 2 หลายเดือนก่อน

    I just have say that you are a great presenter! I've only done minor stuff with ElasticSearch but there were lots of things to consider if our company decides to expand the use cases that are implemented with help of ES.

  • @samrybkin9184
    @samrybkin9184 3 หลายเดือนก่อน

    Hi thanks for a video. For example we have: "unassigned_shards" : 40, When we run: GET _cluster/allocation/explain?filter_path=index,node_allocation_decisions.node_name,node_allocation_decisions.deciders.* { "index": "elastalert_past", "shard": 0, "primary": false } We reiceve next answer: "explanation" : "a copy of this shard is already allocated to this node [[elastalert_past][0], node[JaLzrdasdajQ], [P], s[STARTED], a[id=OmY9kwpHTlybJfSrWvdsadada6g]]" We have only one node and what we can do in this situation ? Also we have "number_of_replicas" : "0", "auto_expand_replicas" : "false", what we can do in this situation ? GET /.kibana/_settings { ".kibana_2" : { "settings" : { "index" : { "number_of_shards" : "1", "auto_expand_replicas" : "false", "provided_name" : ".kibana_2", "creation_date" : "1601664093", "number_of_replicas" : "0", "uuid" : "WKdIpzLFSP-ydObLw", "version" : { "created" : "7090299" } } } } }

  • @carylandholt
    @carylandholt 3 หลายเดือนก่อน

    Nice job. Very clear

  • @kukuricapica
    @kukuricapica 3 หลายเดือนก่อน

    I have just set up singlenode ELK Stack in our environment. It aggregates logs from network application stack via Filebeat from multiple servers and are then futher parsed via Logstash. It's main use should be for diagnostics. Basicaly vision is that L3 can quickly look at the logs and create visualization for single session via REST call from some Web server frontend. They can then easily focus/lens on problematic packets or diagnose where is the problem without need to use Oracle DB and writing queries. Everything is sort of streamlined and easy to use. I can imagine that similar solutions are used for example for security logs. Like i have said I dont have that much knowledge/experience with ELK Stack, but I think that it depends on your application. My opinion is that i wouldn't necessary use Elastic for metrics because there are much better tool for that out there. Also i would like to add that I guess that developers of ELK knows that it's complicated and their documentation is quite nice and understandable, but be careful because you can get lost in the "loop", because there are multiple link to manual that talks about he same thing in different levels of granularity so I would suggest before configuring anything to read through the manula very quickly just to be sure the end result is what you want. And as always less is sometimes more, so keep it simple at the start and as you get more knowledge you can add more features or scale up.

  • @pseudolimao
    @pseudolimao 5 หลายเดือนก่อน

    where was thsi video 1 month ago. you should be paid by these software companies... bless your heart

  • @PedramFeyz
    @PedramFeyz 5 หลายเดือนก่อน

    great job

  • @ChristopherBird-co2wr
    @ChristopherBird-co2wr 5 หลายเดือนก่อน

    Thank you for creating this it is very helpful indeed.

  • @НиколайБеляшов-в6к
    @НиколайБеляшов-в6к 6 หลายเดือนก่อน

    Many thanks for your work! It's awesome video!

  • @НикитаГуцал
    @НикитаГуцал 6 หลายเดือนก่อน

    why don't you use the http "PATCH" method?

  • @ЭдикИсаков-й6ж
    @ЭдикИсаков-й6ж 6 หลายเดือนก่อน

    this is incredible guide! the whole playlist is amazing and very helpful! thank you for this!

  • @sidalisaadi1961
    @sidalisaadi1961 6 หลายเดือนก่อน

    I was planning to run a elastic search image for work on docker, thinking it would be a simple process. this video is an eye opener, now I'm not sure if I should go for it or not, our use case is something like yelp with much less data

  • @PhanTanThangTH
    @PhanTanThangTH 7 หลายเดือนก่อน

    Thank you so much :)

  • @sv_n
    @sv_n 7 หลายเดือนก่อน

    1000th like 😅

  • @atom6_
    @atom6_ 7 หลายเดือนก่อน

    These are great points - within an organisation where elastic ends up in production without really fleshing out the way it should be used and having teams onboarding their data without true understanding of the data modelling that needs to be done and understood upfront is a major pain to fix later down the line. Common fields are essential (i would say critical) to make most of it when trying to get your data out in a useful way.

  • @alexdolotov6554
    @alexdolotov6554 8 หลายเดือนก่อน

    great video!

  • @ИльяКожевников-ж9ы
    @ИльяКожевников-ж9ы 8 หลายเดือนก่อน

    good video, but, how to di it with certs, i mean lots of certs, lots of chages we need to create certs and send it to other nodes and there move to anoter paths, and rewrite some code, My queston is how to send it via ansible?

  • @hieungo770
    @hieungo770 8 หลายเดือนก่อน

    Its two year late but the lesson is extremely value

  • @blossomwithcurls
    @blossomwithcurls 8 หลายเดือนก่อน

    I just started learning Elastic search and this is the best an clear information on Elastic search architecture. Thanks for sharing!

  • @deez_narts
    @deez_narts 11 หลายเดือนก่อน

    I can attest to the challenges you described. I’m the only one in my organization using elasticsearch. Everyone else is afraid to touch it. I do not blame them.

  • @nathansherburne7038
    @nathansherburne7038 11 หลายเดือนก่อน

    How about using Elasticsearch for only term searches and doc id queries? Bad use case?

  • @bun_bun17
    @bun_bun17 11 หลายเดือนก่อน

    you are god sent <3

  • @mubashartariq8076
    @mubashartariq8076 11 หลายเดือนก่อน

    I am trying to install and configure Elasticsearch , Logstash , Kibana and Filebeat to collet some logs but struggling to get this thing going.

  • @harry1234jas
    @harry1234jas 11 หลายเดือนก่อน

    Hi, can you publish certain lab exercises for Elastic certified analyst? Thanks

  • @terroflys
    @terroflys 11 หลายเดือนก่อน

    Thanks for the exercises, for ex. 9 I used a bool with a filter and for ex. 10 I used grok

  • @mksmurff
    @mksmurff ปีที่แล้ว

    Well that's just put me off completely

  • @riazbacchus3962
    @riazbacchus3962 ปีที่แล้ว

    this is great content. thank you.

  • @alistairrwillis
    @alistairrwillis ปีที่แล้ว

    Thanks for this outstanding series. I only wish more tutorials were this clear and concise.

  • @mechdeeps
    @mechdeeps ปีที่แล้ว

    This is amazing. Lot of topics covered in one short video. Kudo's and keep up the good work.

  • @abdirahmann
    @abdirahmann ปีที่แล้ว

    am currently building a project that requires semantic search, i wanted to pay someone soo quickly to get this done (i can do it myself but i don't want to spend the time), i thought ELK would be such a breeze, thanks for saving me the time and money :)

  • @yazzy9975
    @yazzy9975 ปีที่แล้ว

    If elasticsearch distributes the data between the shards of an index such that each lucene store roughly holds the same number of documents, when you run a search query, elasticsearch, despite the inter-node communication, only knows which shards hold that index and not which particular shard will have that document? So it has to run the query against all the shards and merge results, it cannot just search the one shard that contains that document? It does not know beforehand based on how documents are distributed among shards.

  • @yazzy9975
    @yazzy9975 ปีที่แล้ว

    This video changed my life. No exaggeration.

  • @samb2543
    @samb2543 ปีที่แล้ว

    I didn't know about minimum_should_match, that explains a few things!

  • @Justin-um3um
    @Justin-um3um ปีที่แล้ว

    These are great, nothing like this on the web keep them coming!

  • @andy_ltluan
    @andy_ltluan ปีที่แล้ว

    I think that shard in ES has the same concept with partition in Kafka when they have all partition replicas in different nodes

  • @carnealse
    @carnealse ปีที่แล้ว

    You can also use runtime fields to pull and query that field from the _source. The pro is that in large data sets, you save on storage space with fields that are not indexed. The con is that it uses resources to run the runtime field's request. The nice thing is, that field will exist when running the query so you can then search on it even though it was not indexed.

    • @GeorgeBridgemanData
      @GeorgeBridgemanData ปีที่แล้ว

      Great point! You're absolutely right. There will be a whole video on runtime fields; they're very useful and are on the Elastic Certified Engineer curriculum now.

  • @toughcoding
    @toughcoding ปีที่แล้ว

    The worst thing is when you meet Solution Architect who want you to increase index mapping total_fields limit just to fit badly design mapping. Good point! Good sound quality. wish to have same one day

    • @GeorgeBridgemanData
      @GeorgeBridgemanData ปีที่แล้ว

      There's a time and a place for increasing it. It can sometimes get you out of a bind but it's not a good long term solution and you're better off fixing the mapping as soon as practical.

  • @cloudandsqlwithpython
    @cloudandsqlwithpython ปีที่แล้ว

    Great work sir

  • @systechadmin8368
    @systechadmin8368 ปีที่แล้ว

    Awesome explanation

  • @guyholmes1231
    @guyholmes1231 ปีที่แล้ว

    Hi @GeorgeBridgemanData - can Elsatic search be used for types of files that it may never have seen before and "shown" how to parse them?

  • @cloudandsqlwithpython
    @cloudandsqlwithpython ปีที่แล้ว

    Great work sir ❤

  • @cloudandsqlwithpython
    @cloudandsqlwithpython ปีที่แล้ว

    Great work

  • @eladitzkovitch6203
    @eladitzkovitch6203 ปีที่แล้ว

    Hi George, how can I contact you in person? We would like to invite you as a guest to a function of ours to talk about Elasticsearch.

  • @jamesa8165
    @jamesa8165 ปีที่แล้ว

    Certainly can attest to point #1 - We went into our project (hundreds of millions of records, for full document text search) thinking we would have completely flattened data. Later on in the project we saw a serious need for some form of hierarchy/relationship - I see now why ES HIGHLY recommends flattened data approaches - the hasParent/hasChild queries can be complicated and super expensive, especially for aggregations.

  • @artemnikolaienko4753
    @artemnikolaienko4753 ปีที่แล้ว

    Did you try to use dynamic templates in OpenSearch? It seems OpenSearch doesn't support it.

    • @GeorgeBridgemanData
      @GeorgeBridgemanData ปีที่แล้ว

      I've tested all these commands against OpenSearch (2.2.1 in my case) and they work fine.