icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

We are working on something new...

A Fresh New Splunkbase
We are designing a New Splunkbase to improve search and discoverability of apps. Check out our new and improved features like Categories and Collections. New Splunkbase is currently in preview mode, as it is under active development. We welcome you to navigate New Splunkbase and give us feedback.
Splunkbase will be undergoing a scheduled migration and will be unavailable on Saturday, Oct 1, 2022, from 11AM to 3PM PDT

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading Bing Web Search App by GoAhead
SHA256 checksum (bing-web-search-app-by-goahead_072.tgz) bcf264031c9f275b4db1043bfafefe775aebddcc6cd1ea58ccbfb14ca9d238df SHA256 checksum (bing-web-search-app-by-goahead_071.tgz) f4fb5648e431af0b407ef18965d2c6cf83ef7987d39c66e7727adde21c1b9fc4
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

Bing Web Search App by GoAhead

Splunk Cloud
Overview
Details
Bing Web Search App is an API wrapper tool of Microsoft Bing Web Search API (v7).
This App requests to "https://api.bing.microsoft.com/v7.0/search".
Bing Web Search API Key is needed for utilize.
`binghostinfo` can be used for checking the suspicious IP address is also used as a web hosting server.:)
Developed by "Tatsuya Hasegawa" in 'GoAhead Inc'.

Bing Web Search App by GoAhead

Introduction

Bing Web Search App is an API wrapper tool of Microsoft Bing Web Search API (v7).
This App requests to "https://api.bing.microsoft.com/v7.0/search".
Bing Web Search API Key is needed for utilize.
binghostinfo can be used for checking the suspicious IP address is also used as a web site hosting server.:)

Installation

The Bing API Key is needed to utilize this App.
1. Install this App package
2. Create the APK Key on your Azure. Ref) https://docs.microsoft.com/en-us/bing/search-apis/bing-web-search/create-bing-search-service-resource#create-your-bing-resource
3. Set up the API Key on the App Setup Page.
4. Restarting splunk search head instance may be sometimes possibly needed for activating these custom search commands and loading this app's icon.
5. App Install user needs "admin_all_objects" privilege and Splunk search users need "list_storage_passwords" privilege in order to utilize "Secret storage".

Usage

  1. bingwebsearch
    • GeneratingCommand as Bing Web Search API(v7) wrapper.
    • Options (Please refer to Bing API docs for detail.)
      • q (Required) : search query following bing operator rules.
      • count : (Optional) response result count, default 10, max 50.
      • offset : (Optional) offset to retrieve subsequent pages, default 0.
      • mkt : (Optional) One market code like en-US, ja-JP, No mkt setting is by default.
      • responseFilter : (Optional) responseFilter comma separated list for including the content category and minus(-) means that of excluded. e.g. Webpages,-Images,-Videos. No filter is by default. We just have completed to test about the single category and let me notify that comma separeted list and minus operators were not succeeded on our free API env.
      • safeSearch : (Optional) filter webpages for adult content, choice from Off/Moderate/Strict. Moderate is by default.
      • others : (Optional) other query parameters combined with & , e.g. answerCount=,promote=,cc=,freshness=,setLang=,textDecorations,textFormat
    • Output field name
      • ALL output names are the same to the API response fields.
      • In addition, "app_status" field is appended for checking this command result.
    • Example
      • | bingwebsearch q="site:google.com hogehoge" count=10 offset=0 mkt=ja-JP responseFilter=Webpages,-Images,-Videos safeSearch=Strict others="setLang=en-US&freshness=2020-01-01..2022-04-01"
| bingwebsearch q="site:google.com apple" mkt="en-US"
| spath input=relatedSearches
| spath input=webPages
| spath input=rankingResponse
| table queryContext totalEstimatedMatches mainline.items{}.answerType value{}.url value{}.name value{}.text value{}.language value{}.dateLastCrawled

Screenshot example (SPL is different from above.)

  1. binghostinfo
    • StreamingCommand to append the web site hosting info for target ip or domain via Bing Web Search API(v7). The const parameters are "count=50", "offset=0" and responseFilter=Webpages.
    • Options
      • input_field (Required): Target field name to input, ip or domain is expected as the field value.
      • mode (Required): Select "ip" or "domain" , these mean Bing API's search query Operators of "ip:" or "domain:"
      • mkt : (Optional) One market code like en-US, ja-JP, No mkt setting is by default. Please refer to Bing API docs for detail.
      • apisaver : (Optional) API amount saver, default: true. This app raises exception if the amoount of your events passed to this command are over 50. Please set "apisaver=false" explicitly to avoid this limit.
    • Output field name
      • ALL output names are the same to the API response fields.
    • Example
      • ...| fields ipfield | binghostinfo input_field=ipfield mode=ip
| makeresults 
| eval ipv4 = "8.8.8.8"
| binghostinfo input_field=ipv4 mode=ip mkt="en-US" 
| table Bing_hostcount Bing_hostinfo app_status *

Screenshot example (SPL is different from above.)

Command usages are also described in searchbnf.conf, thus you can see it on search window by writing the command name on.

Some errors are dumped to the command result fields and the command exception will be dumped in search.log.
Especially, Request URL string and its HTTP response code will be dumped in search.log for debugging.

Bing API Docs

Included 3rd party's additional import modules

None

Similar App

https://splunkbase.splunk.com/app/3355/

Attention to begin to use this app

We are not responsible for charges due to BingAPI consumption or disadvantages due to using up the free quota.

Please note monthly 1000 API query is the main limit if you use Bing API in free subscription.

Support

Splunk 8.x or later, this app codes are written in Python3.

License

APACHE LICENSE, VERSION 2.0

Copyright

Copyright 2022 GoAhead Inc.

Release Notes

Version 0.7.2
Sept. 28, 2022
  • adding one exception handling to binghostinfo if there are no webPages hit by the query.
  • fix README text and searchbnf.conf
Version 0.7.1
Aug. 19, 2022

Potential bug fix:
Changed secret storage's secret username for avoiding collisions in the global share (system) setting mode
In addition, the default share mode is changed from Global to App.


Subscribe Share

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
Splunk, Splunk>,Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk Inc. in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.