Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8967453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:14:48+00:00 2026-06-15T17:14:48+00:00

I tried to define the _timestamp property on an index. So first, I create

  • 0

I tried to define the _timestamp property on an index.
So first, I create the index

curl -XPUT 'http://elasticsearch:9200/ppe/'

response from the server : {"ok":true,"acknowledged":true}

then I tried to define the mapping with a _timestamp

curl -Xput 'http://elasticsearch:9200/ppe/log/_mapping' -d '{
  "log": {
    "properties": {
      "_ttl": {
        "enabled": true
      },
      "_timestamp": {
        "enabled": true,
        "store": "yes"
      },
      "message": {
        "type": "string",
        "store": "yes"
      },
      "appid": {
        "type": "string",
        "store": "yes"
      },
      "level": {
        "type": "integer",
        "store": "yes"
      },
      "logdate": {
        "type": "date",
        "format": "date_time_no_millis",
        "store": "yes"
      }
    }
  }
}'

and I receive as answer from the server

{
  "error": "MapperParsingException[No type specified for property [_timestamp]]",
  "status": 400
}

What’s wrong with my mapping?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:14:49+00:00Added an answer on June 15, 2026 at 5:14 pm

    Special fields such as _ttl and _timestamp have to be defined on the same level as the properties object:

    curl -Xput 'http://elasticsearch:9200/ppe/log/_mapping' -d '{
        "log": {
            "_ttl": {
                "enabled": true
            },
            "_timestamp": {
                "enabled": true,
                "store": "yes"
            },
            "properties": {
                "message": {
                    "type": "string",
                    "store": "yes"
                },
                "appid": {
                    "type": "string",
                    "store": "yes"
                },
                "level": {
                    "type": "integer",
                    "store": "yes"
                },
                "logdate": {
                    "type": "date",
                    "format": "date_time_no_millis",
                    "store": "yes"
                }
            }
        }
    }
    '
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried to create base controller and write in it: Ext.define('My.Users.controller.Role', { extend :
I tried to split two fields from a binary string: -define(S,<<M\0\0\0522039355099,010100000008,0,010170000000,0,0,0,0,0,0,,,0,0,,‌​0110,00,150,0,0,0\0>>).<<Message_length:4/binary,Msg/binary>> = S. the
I tried to define my own exception class in python 2.7, deriving from BaseException
I have tried this: #define format(f, ...) \ int size = strlen(f) + (sizeof((int[]){__VA_ARGS__})/sizeof(int))
Is it possible to get a node by its internalId? I tried: Store Ext.define('myStore',
I tried to run this code: #define ROW_CNT 8; #define COLUMN_CNT 24; #define FIRST_COLUMN
tried uncommenting pam_limits.so from the pam.d directory but no luck. Basic PAM seems to
Tried to create a mobile navigation using dataview or outline and the view renders
I have tried to define a fixed point generator in C# that you see
I tried to define a way to validate source code defined in an xml

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.