Coder Social home page Coder Social logo

codingexplained / complete-guide-to-elasticsearch Goto Github PK

View Code? Open in Web Editor NEW
1.6K 137.0 1.2K 205 KB

Contains all of the queries used within the Complete Guide to Elasticsearch course.

Home Page: https://l.codingexplained.com/r/elasticsearch-course?src=github

License: Apache License 2.0

elasticsearch elk elk-stack elastic-stack

complete-guide-to-elasticsearch's Introduction

complete-guide-to-elasticsearch's People

Contributors

ba0708 avatar epecchioli-florence-consulting avatar maowerner avatar mathiasfk avatar osazemeu avatar poperechnyi1 avatar yhao3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

complete-guide-to-elasticsearch's Issues

Rename index to products

In some old videos, you still using the index named as product instead of products. As the video that shows the creation of the index uses the name products, I think it make sense to use this same name in all examples.

logstash

I am sorry, I am getting little off the topic.
I was trying to parse input using csv filter in logstash.
I am getting output from logstash something like this:

hostname => "hostname=test_machine"
event_id => "event_id=1145"

How do I exclude the hostname= or Is there a better way to use hostname inside quotation as a field. Please help

I used
csv {
autogenerate_column_names => "false"
columns => ["hostname","event_id"]
}
mutate {
gsub => ["message", "hostname=", " "]
} But, this will mess every words 'h' 'o' 's' and so on with other parsed messages and I don't think its the better way. Please suggest me the way.

The output I want is:
hostname => "test_machine"
event_id => "1145"

Bulk Import - erroring in Power shell and Git Bash shell

hi Bo,

while importing the products.json file, i am getting this below error in Power shell..

curl -H "Content-Type: application/x-ndjson" -XPOST http://localhost:9200/products/_bulk --data-binary "@products-bulk.json"

PS C:\ms\complete-guide-to-elasticsearch> curl -H "Content-Type: application/x-ndjson" -XPOST http://localhost:9200/products/_bulk --data-binary "@products-bulk.json"
Invoke-WebRequest : Cannot bind parameter 'Headers'. Cannot convert the "Content-Type: application/x-ndjson" value of type "System.String" to type "System.Collections.IDictionary".
At line:1 char:10

  • curl -H "Content-Type: application/x-ndjson" -XPOST http://localhost ...

  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
    • FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

    But in Git Bash : I am getting the below response. not been able to import to ES.

    anila@DESKTOP-GFR2COL MINGW64 /c/ms/complete-guide-to-elasticsearch (master)
    $ curl -H "Content-Type: application/x-ndjson" -XPOST http://localhost:9200/products/_bulk --data-binary "@products-bulk.json"
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 354k 0 0 100 354k 0 47.9M --:--:-- --:--:-- --:--:-- 49.3M
    curl: (52) Empty reply from server

The address is invalid error for orders-bulk.json

I encountered an 'Invalid address' error while attempting to access the resources file in the 111. Introduction to Aggregations lecture. Upon further investigation, I noticed that the file is not located within the Aggregations folder, which could be the root cause of the issue.

An Advice for you :)

See I am giving you advice for your benefit as a teacher..
I watched your course on ElasticSearch.

You say you will update the application and then you express your inability that of not doing it.It gives a bad impression on me as a student.
What you should do instead.
You should say in beginning of the course that you will be using this version and ask be to use that version via docker so i do not experience any incompatibility.

This is a pattern which popular teacher like Mosh Hamedani does when he taught his course on docker (https://codewithmosh.com/p/the-ultimate-docker-course). He knew things can change so he explicity asks me to use the same version.

Action Step you should take is:
Say explicitly I am will be using v7 of elastic search and make me install it via docker compose.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.