Comments (7)
Hey @Erikg346. I will need some help to understand the issues you encounter. I am not sure I follow 100%. So you want to visualize raw documents but you want to change the name of the columns, do I understand correctly? If yes you have 2 options:
Dataview mode
- Click the field you want to rename in the sidebar
![image](https://private-user-images.githubusercontent.com/17003240/338178273-ccbbed58-1668-4c40-933f-d690c730cc88.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgyODk1NzUsIm5iZiI6MTcxODI4OTI3NSwicGF0aCI6Ii8xNzAwMzI0MC8zMzgxNzgyNzMtY2NiYmVkNTgtMTY2OC00YzQwLTkzM2YtZDY5MGM3MzBjYzg4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEzVDE0MzQzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY5MTA2YmY2ODc1MGI5NjEyMzJlZTU3ZWY5ZjE2NzI2NjY3YjY2ZjczZDA1Y2RlMTI4MjQ3ZmYzYjUzNTMwYmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.H72XNY4rjeRImbzfyKGIW4WGbXVYBhpuoiXCe9dSRXo)
- Click the Edit icon
- Change the custom label to the name you want to give
![image](https://private-user-images.githubusercontent.com/17003240/338178499-040c3e3e-ec13-4064-b07c-7a0d23487c5c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgyODk1NzUsIm5iZiI6MTcxODI4OTI3NSwicGF0aCI6Ii8xNzAwMzI0MC8zMzgxNzg0OTktMDQwYzNlM2UtZWMxMy00MDY0LWIwN2MtN2EwZDIzNDg3YzVjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEzVDE0MzQzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJiZmMzNmY3NzgzNmMxM2ZiMzY0YmJiNjg4MTQ2ODgzM2FiZDVhYTZjMjY4ZjQwYzRmMTQ4MGRkZWM3YWNkZDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VkayhK5pbgBUzMB28xkV4XQWnpFE1Ljr-aytanHmF-c)
- Save and you will see that the header has changed
![image](https://private-user-images.githubusercontent.com/17003240/338178662-c6c6a517-a040-4609-9436-2b9a43447425.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgyODk1NzUsIm5iZiI6MTcxODI4OTI3NSwicGF0aCI6Ii8xNzAwMzI0MC8zMzgxNzg2NjItYzZjNmE1MTctYTA0MC00NjA5LTk0MzYtMmI5YTQzNDQ3NDI1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEzVDE0MzQzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ4ZDBiNWUzZGY4Y2JmZDBkZTM1ZDUzZGIyNjcxNGZiODUyNGM3NWY0NmQ3NmNkYzkzMzU4ODM0NzA0YTBiN2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.fmLvCIP_FdKTK1kQKMmSyMp1E0syBVA32DmPmIHuZa0)
ES|QL mode
In case you operate in a kibana version > 8.11 then you can also accomplish that with ES|QL.
- Click the data view picker and select the
Try ES|QL
green button
![image](https://private-user-images.githubusercontent.com/17003240/338179056-5816b1c2-c0a8-4db7-ba1f-97bb4adf8d88.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgyODk1NzUsIm5iZiI6MTcxODI4OTI3NSwicGF0aCI6Ii8xNzAwMzI0MC8zMzgxNzkwNTYtNTgxNmIxYzItYzBhOC00ZGI3LWJhMWYtOTdiYjRhZGY4ZDg4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEzVDE0MzQzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY3ZDM3OGQ3Y2Q3OTk3N2YwYjY2Nzc3Nzg1NWRkY2Y5NjM0M2MxN2E3ZWY4OGNlZDdjMTBhMWUyODk1NzhhOTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZLJQfvRciVSHWl4VKSocDwd39fCaGdBoLGiUSFKmDVY)
- Change the query to
from kibana_sample_data_logs | rename index as `custom_label`
![image](https://private-user-images.githubusercontent.com/17003240/338179286-3cac1923-4724-4f81-b844-9cb5ede5cb72.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgyODk1NzUsIm5iZiI6MTcxODI4OTI3NSwicGF0aCI6Ii8xNzAwMzI0MC8zMzgxNzkyODYtM2NhYzE5MjMtNDcyNC00ZjgxLWI4NDQtOWNiNWVkZTVjYjcyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEzVDE0MzQzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA2MGY1YzBlZTdiNGRhODliMGNhODc5MDNmNTgxNjZjNTQxYWNiNWVhOTJiMmI4Yjg2YTVjNmQwYjc5Y2IzZmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.XfUZwJNNCRY254BShqfqwptjQh2Ngpe48l_K9UtWaRo)
- The field has been renamed to the name you want.
If this is not what you want then can you please help me understand better what you are trying to accomplish? Thanx a ton
from kibana.
Hey @stratoula
So, clarification: @timestamp can be added to ESQL searches; the issue I experienced is that once I added the @timestamp to the search, it didn't allow me to move it to the left (where @timestamp normally is). I tried it again, and I believe it's an issue with version 8.12.2.
8.12.2
Recording.2024-06-10.112426.mp4
from kibana.
Ah yes this was a bug that got fixed in 8.13 if I am not mistaken. I hope you enjoy esql and please feel free to send us your feedback! Also if with esql you can accomplish what you want maybe we can close this issue or is anything missing that you would like us to take under consideration?
from kibana.
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)
from kibana.
Hey @stratoula,
- Data View
yes, so the issue with changing the data view is our fields can be used to convey different information within one data view.
For example, If we change 'host.name' to 'Elastic Servers', anything that is not an Elastic Server will be labeled as such.
So if I wanted to see 'host.name' as 'Azure VMs', it will appear as 'Elastic Servers'.
- ESQL
As for the ESQL, the rename is a perfect alternative BUT for some reason, I can't display @timestamp. It seems like I want a data table (allows you to rename the column) but also keep the saved search format where you can see each document with their associated @timestamp.
Hopefully, that helps you understand a bit more.
from kibana.
Gotcha! Yes unfortunately for dataview mode in order to have different names you need to create different dataviews.
About ESQL and the @timestamp this is weird. Do you have @timestamp in your index or is named differently. If yes, which version are you running?
from kibana.
All good thanks!
from kibana.
Related Issues (20)
- [Security GenAI][Integration Assistant] Available input types missing backing template HOT 3
- Hamster Kombat Daily Combo + Cipher (Morse Code) | Get 5 Millions Now! HOT 1
- [data.search] Stop sending entire request body in polling requests HOT 1
- [data.search] Remove bfetch/bsearch HOT 1
- [data.search] Remove total hits shimming (`legacyHitsTotal`) HOT 1
- [data.search] Move `retrieveResults` handling to client HOT 1
- Failing test: Security Solution Cypress.x-pack/plugins/security_solution/public/management/cypress/e2e/response_actions/response_console/scan·cy·ts - Response console Scan operation: "before all" hook for ""scan --path" - should scan a folder" "before all" hook for ""scan --path" - should scan a folder" HOT 30
- Failing test: Serverless Search Functional Tests - Common Group 6.x-pack/test_serverless/functional/test_suites/common/discover/x_pack/reporting·ts - discover Discover CSV Export Generate CSV: new search generates a report with no data HOT 1
- [OneDiscover] Add EBT event to track field usage HOT 1
- [ES|QL] Support counter fields HOT 1
- Remove any type from observability plugin HOT 1
- [Meta] Improve code quality and stability HOT 1
- Failing test: Chrome UI Functional Tests.test/functional/apps/home/_welcome·ts - home app Welcome interstitial clicking on "Explore on my own" redirects to the "home" page
- [OneDiscover] Logs contextual data presentation HOT 2
- Allow new fields to be added when plotting geo-shapes HOT 1
- [Fleet] Enable feature flag `enableReusableIntegrationPolicies`
- Failing test: Serverless Search Functional Tests - Common Group 6.x-pack/test_serverless/functional/test_suites/common/discover/x_pack/reporting·ts - discover Discover CSV Export Generate CSV: archived search generates a report with discover:searchFieldsFromSource = true HOT 1
- Failing test: Jest Tests.x-pack/plugins/security_solution/public/detection_engine/rule_gaps/components/manual_rule_run - ManualRuleRunModal should render confirmation button disabled if invalid time range has been selected HOT 3
- Failing test: Jest Tests.x-pack/plugins/security_solution/public/detection_engine/rule_gaps/components/manual_rule_run - ManualRuleRunModal should render confirmation button disabled if selected start date is more than 90 days in the past HOT 4
- Failing test: Jest Tests.x-pack/plugins/security_solution/public/detection_engine/rule_gaps/components/manual_rule_run - ManualRuleRunModal should render confirmation button disabled if selected end date is in future HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kibana.