IndexPatternAnalytics: Difference between revisions

From QuatenusWiki
No edit summary
No edit summary
Line 44: Line 44:


✔️ O data view fica disponível para uso em Discover, Dashboards, etc.
✔️ O data view fica disponível para uso em Discover, Dashboards, etc.
Criar script field:
[[File:Script Field.png|frameless|848x848px]]
= core-d-documents-###* =
=== Edit DocsViewRaw ===
Proceed with caution
Please familiarize yourself with script fields  and with scripts in aggregations  before using scripted fields.
Scripted fields can be used to display and aggregate calculated values. As such, they can be very slow, and if done incorrectly, can cause Kibana to be unusable. There's no safety net here. If you make a typo, unexpected exceptions will be thrown all over the place!
Formatting allows you to control the way that specific values are displayed. It can also cause values to be completely changed and prevent highlighting in Discover from working.
Language : painless
Type : string
Format (Default: String): Url
Formatting allows you to control the way that specific values are displayed. It can also cause values to be completely changed and prevent highlighting in Discover from working.
Type: Link
Open in a new tab : On
URL template: <nowiki>http://services.quatenus.eu/quatenus10/QDocsViewRaw/QDocsViewRaw.aspx?answerId={{value}}</nowiki>
URL template help
Label template : Ver documento
{| class="wikitable"
|+This table contains 3 rows.
!Input
!Output
|-
|john
|Ver documento
|-
|/some/pathname/asset.png
|Ver documento
|-
|1234
|Ver documento
|}
Popularity: 0
Script
<code>doc['some_field'].value</code>.
[[File:ScriptFields full.png|frameless|1190x1190px]]





Revision as of 09:16, 28 April 2026

Criar um Index Pattern (Data View) no Elasticsearch / Kibana

📌 Introdução

Um index pattern (atualmente chamado de data view) permite ao Kibana aceder e visualizar dados armazenados no Elasticsearch.

⚠️ Nota: O index pattern não cria índices — apenas referencia índices existentes.

✅ Método 1 — Via Interface do Kibana

Passos

Aceder ao Kibana (ex: http://localhost:5601)

Navegar até:

    • Management -> Stack Management

  • Kibana -> Index Patterns

  • Create Index Pattern

  • Configure time field

  • Page with the field listed in the index created

Configuração

Name: Nome amigável (ex: logs-app)

Index pattern: ** logs-* ** my-index-2026

Time field (opcional): ** @timestamp

Clicar em Save

✔️ O data view fica disponível para uso em Discover, Dashboards, etc.



Criar script field:


core-d-documents-###*

Edit DocsViewRaw

Proceed with caution

Please familiarize yourself with script fields  and with scripts in aggregations  before using scripted fields.

Scripted fields can be used to display and aggregate calculated values. As such, they can be very slow, and if done incorrectly, can cause Kibana to be unusable. There's no safety net here. If you make a typo, unexpected exceptions will be thrown all over the place!

Formatting allows you to control the way that specific values are displayed. It can also cause values to be completely changed and prevent highlighting in Discover from working. Language : painless Type : string Format (Default: String): Url Formatting allows you to control the way that specific values are displayed. It can also cause values to be completely changed and prevent highlighting in Discover from working. Type: Link Open in a new tab : On URL template: http://services.quatenus.eu/quatenus10/QDocsViewRaw/QDocsViewRaw.aspx?answerId={{value}} URL template help Label template : Ver documento

This table contains 3 rows.
Input Output
john Ver documento
/some/pathname/asset.png Ver documento
1234 Ver documento

Popularity: 0

Script

doc['some_field'].value.



🔍 Boas Práticas

Confirmar existência de índices:

Usar wildcards (*) para flexibilidade


📎 Conclusão

Criar um index pattern é um passo essencial para explorar dados no Kibana. Após configurado, permite construir visualizações, dashboards e análises de forma eficiente.