# Http\_poller fingerprint 不起作用

**URL:** <https://discuss.elastic.co/t/http-poller-fingerprint/162098>\
**Category:** Logstash\
**Created:** [December 26, 2018, 6:11am UTC](https://discuss.elastic.co/t/http-poller-fingerprint/162098 "2018-12-26T06:11:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![375311384](https://avatars.discourse-cdn.com/v4/letter/3/3ab097/32.png) [@375311384](https://discuss.elastic.co/u/375311384)\
**Post date:** [December 26, 2018, 6:11am UTC](https://discuss.elastic.co/t/http-poller-fingerprint/162098/1 "2018-12-26T06:11:29Z")

</div>

```
大家好：
             无法生成指纹字段，请帮助。配置文件如下：
   
input {
http_poller {
    urls => {
        test2 => {
            method => post
            url => "http://*.*.*.*: **** /*/save"
	    	body => {
			params => {
				"id" => "#{id}"
			    "title" => "#{title}"
			    "mainBody" => "#{mainBody}"
				}
		}
            headers => {
			Accept => "application/json"
		}
         }
    }
    request_timeout => 60
    schedule => { cron => "* * * * * UTC"}
    codec => "json"
    metadata_target => "http_poller_metadata"
}
}

filter {
  fingerprint {
    concatenate_sources => "true"
	method => "MURMUR3"
	source => ["title","mainBody"]
	concatenate_sources => true 
	target => "finger"
	#add_field => {"similar" => "%{finger}"}
  }
  
}

output {  
 elasticsearch {          
hosts => "localhost:9200" 
index => "*"
document_type => "*"
 }
  # stdout {
  # codec => rubydebug
  # }
}
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 23, 2019, 6:11am UTC](https://discuss.elastic.co/t/http-poller-fingerprint/162098/2 "2019-01-23T06:11:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
